The PHP desk reference

A clear answer. A useful example.

Concise explanations and executable examples for the functions and concepts you use, grouped by topic.

Arrays

Character checks

Classes

Dates

Functions

Hashing

JSON

Loops

Mathematics

Multibyte strings

Regular expressions

Strings

Types

Validation

Syntax changes by PHP version

What each release changed in the language, with earlier and current code side by side.

PHP version compatibility

Browse PHP 5.6, each PHP 7 release, and PHP 8.0–8.6. Historical versions are for maintenance and migration research.

Independent learning material. For the full language specification and API details, visit the official PHP manual.