This version is no longer officially supported.
Official support refers to that provided direct by the PHP Project.
If you install PHP via third-party packages, support timelines may be different.
Please read the Release Support Policy for more information.
Latest Release: 7.4.33 (2022-11-03)
Upgrade Tips
-
Declare explicit types on class properties directly, eliminating the need to rely on PHPDoc annotations (@var) and manual type validation logic.
-
Write single-expression anonymous functions concisely using short closure syntax with implicit variable binding from the parent scope.
-
Assign a value to a variable or array key only if it is currently null or unset, using the shorthand null coalescing assignment operator (??=).
-
Unpack arrays inside other arrays using the spread operator (...), simplifying array merging and array literal construction.