Official docs outline
19 sections- Basic syntax
PHP tags, embedding in HTML, statements, comments.
- Types
Scalars, arrays, objects, null, type juggling, strict_types and type declarations.
- Variables
Variable scope, superglobals, variable variables and references.
- Constants and operators
Operator precedence, null coalescing, spaceship, comparison and string/array operators.
- Control structures
if, match, switch, loops, foreach, break/continue and include/require.
- Functions
Parameters, defaults, named arguments, variadics, return types, closures and arrow functions.
- Classes and objects
Properties, methods, visibility, constructors, static, abstract classes, interfaces and traits.
- Enumerations
Pure and backed enums, enum methods and interfaces.
- Namespaces
Namespace declarations, use imports, autoloading with PSR-4.
- Errors and exceptions
try/catch/finally, Throwable hierarchy, Error vs Exception and error handling configuration.
- Generators
yield, generator delegation and lazy iteration.
- Attributes
Native metadata annotations and reflection access.
- References
Reference semantics, passing and returning by reference.
- Fibers
Fiber-based cooperative concurrency.
- Predefined variables and interfaces
Superglobals such as $_GET, $_POST, $_SERVER and $_SESSION, plus built-in interfaces like ArrayAccess, Iterator and Countable.
- Sessions and cookies
HTTP authentication, cookies, sessions, file uploads and request handling.
- Database extensions (PDO)
PDO, prepared statements and transactions.
- Security
Input validation, SQL injection, XSS, CSRF, password hashing and secure configuration.
- Extensions and configuration
Runtime configuration (php.ini), extensions and the CLI.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.
Versions and support
6 release lines| Line | Released | Latest | Support |
|---|---|---|---|
| 8.5 | Nov 20, 2025 | 8.5.12 | Until Dec 31, 2029 |
| 8.4 | Nov 21, 2024 | 8.4.27 | Until Dec 31, 2028 |
| 8.3 | Nov 23, 2023 | 8.3.36 | Until Dec 31, 2027 |
| 8.2 | Dec 8, 2022 | 8.2.35 | Until Dec 31, 2026 |
| 8.1 | Nov 25, 2021 | 8.1.34 | Ended Dec 31, 2025 |
| 8.0 | Nov 26, 2020 | 8.0.30 | Ended Nov 26, 2023 |
Source: endoflife.date