From fecf93309b34b59e23dda35530d83b0f1b05ab84 Mon Sep 17 00:00:00 2001 From: Jim Winstead Date: Tue, 23 Jul 2024 15:01:29 -0700 Subject: [PATCH] Add history for PHP 6, 7, and 8 (#3358) (#3576) --- appendices/history.xml | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/appendices/history.xml b/appendices/history.xml index 01578442c4..e4f2767c0b 100644 --- a/appendices/history.xml +++ b/appendices/history.xml @@ -202,6 +202,66 @@ of millions of domains around the world. + + + PHP 6 + + The plan for PHP 6 was to feature deep support for Unicode in + the engine and language. This work was later abandoned, but other + features that had been targeted for PHP 6 were instead incorporated + into PHP 5.3 (namespaces) + and PHP 5.4 (trait, + "short" array syntax). + + + + + PHP 7 + + PHP 7.0 was released in 2015, and featured another major version of + the core, Zend Engine 3.0, which included + significant performance improvements (up to twice as fast as PHP + 5.6) and memory usage, consistent 64-bit support, improvements + to exceptions, a secure random number generator, the + null coalescing + operator (??), anonymous + classes, and other features. + + + Later releases of the PHP 7 series introduced more language features + such as the short list syntax (7.1), + object parameter and return type declaration (7.2), a new flexible + heredoc + and nowdoc + syntax (7.3), typed properties (7.4), and a new + foreign function interface (7.4). + + + + + PHP 8 + + First released in 2020, PHP 8.0 was another major update of the PHP + language. It contained many new features and optimizations including + named arguments, + union + types, attributes, + constructor + property promotion, + match + expressions, the nullsafe + operator (?->), a new optimizing JIT compiler, + and improvements in the type system, error handling, and consistency. + + + Later releases of the PHP 8 series introduced new language features + including enumerations (8.1), + fibers (8.1), + readonly classes (8.2), + Disjunctive Normal Form (DNF) Types (8.2), and typed class + constants (8.3). + +