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.1.33 (2019-10-24)
Upgrade Tips
-
Prepend parameter and return types with a question mark (?) to permit null values alongside the specified type.
-
Functions and methods can now declare a void return type, indicating they do not return a value.
-
Use the iterable pseudo-type to accept both arrays and Traversable objects in parameter and return declarations.
-
Catch multiple exception types in a single catch block using pipe syntax (|), avoiding redundant error handling code.