Language Featured

PHP

A pragmatic language: fast to write, typed when it matters, built for the request/response web.

PHP shines on the HTTP cycle: a process handles a request, then dies. That model is simple to reason about, cheap to scale horizontally, and a poor fit for long-lived daemons — unless you add workers (Messenger, RoadRunner, FrankenPHP).

From 7 to 8, the language grew real types: scalar types, return types, union types, enums, readonly, attributes. PHP 8.4 adds property hooks. A senior uses them to make contracts explicit, not as decoration.

The particularity: a huge ecosystem (Composer) and a runtime that is everywhere. The risk: “array-oriented” code that never becomes a domain. Types, value objects and a clear boundary with SQL keep it honest.

php.net