Early previewThis guide is in development. Items tagged verify are still being checked against official docs.
nebx Learn
GitHub
Menu
PHP

PHP

Pragmatic server-side language that powers a large share of the web.

Paradigm
OOP, procedural, functional features
Typing
Dynamic with gradual typing (strict_types)
Memory
Reference counting + cycle collector
Runs
Zend Engine, bytecode + OPcache, optional JIT
Concurrency
Shared-nothing per request; Fibers (8.1)

PHP overview

Pragmatic server-side language that powers a large share of the web. Every language page follows the same structure, so you can jump between languages and compare.

Hello world

hello.php
<?php
declare(strict_types=1);

echo "Hello, patterns!\n";

Source repository

The SOLID single-responsibility example in this guide comes from gelnomo/training-algorithms-php (SOLID/SingleResponsibilityPrinciple.php). The other sections were written for nebx Learn.

Saved in this browser only. Part of Clean code foundations (0/5).