PHP 8.5 brings powerful new features including a standards-compliant URI extension, enhanced object cloning, the pipe operator for cleaner code, and significant performance improvements.
Explore the headline features that make PHP 8.5 exceptional
Native, standards-compliant URI parsing with the new Uri extension. Clean, object-oriented API for working with URLs.
New Extension View example →Modify properties while cloning objects, including readonly properties. Perfect for immutable value objects.
Language Feature View example →Write cleaner, more readable code by chaining function calls with the new pipe operator syntax.
Syntax View example →Mark return values as important. Get warnings when critical function results are ignored.
Attribute View example →Use closures and first-class callables in constant expressions and attributes for more powerful metaprogramming.
Enhancement View example →Improved performance with persistent cURL share handles. Better connection reuse across requests.
Performance View example →final classes#[\Override] for properties#[\Deprecated] for traitsarray_first() and array_last()get_error_handler()get_exception_handler()grapheme_levenshtein()curl_multi_get_handles()