New URI Extension
Parse and modify URIs according to RFC 3986 and WHATWG URL standards with a secure, standards-compliant API.
Learn about URI Extension
A milestone release for modern web development.
Cleaner, faster, and more expressive than ever.
Powerful language improvements and enhanced developer experience.
Parse and modify URIs according to RFC 3986 and WHATWG URL standards with a secure, standards-compliant API.
Learn about URI ExtensionUpdate properties during object cloning with the new with-er pattern, enabling proper support for readonly classes.
Explore Clone WithClean up nested function calls with the new |> pipe operator for more readable and maintainable functional code chains.
See pipe operator examplesImprove code safety by warning when important return values are accidentally ignored with the new #[\NoDiscard] attribute.
Learn about #[\NoDiscard]Use closures and first-class callables in constant expressions for more powerful attributes and better testing.
Learn about constant closuresNew array_first() and array_last() functions make common array operations more concise and readable.
Discover array functionsThree key improvements that enhance your development workflow.
Optimized core operations deliver faster execution and reduced memory footprint.
New syntax features and APIs make PHP more expressive and developer-friendly.
New #[\\NoDiscard] attribute and closures in constants enhance code reliability.
Connect with the global PHP community at these upcoming events.
PHP 8.5 is made possible by the dedication of contributors, sponsors, and the entire PHP community worldwide.