Key Features

Powerful language improvements and enhanced developer experience.

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

Clone With

Update properties during object cloning with the new with-er pattern, enabling proper support for readonly classes.

Explore Clone With

Pipe Operator

Clean up nested function calls with the new |> pipe operator for more readable and maintainable functional code chains.

See pipe operator examples

#[\NoDiscard] Attribute

Improve code safety by warning when important return values are accidentally ignored with the new #[\NoDiscard] attribute.

Learn about #[\NoDiscard]

Closures in Constant Expressions

Use closures and first-class callables in constant expressions for more powerful attributes and better testing.

Learn about constant closures

Array Functions

New array_first() and array_last() functions make common array operations more concise and readable.

Discover array functions

What's New in PHP 8.5

Three key improvements that enhance your development workflow.

Enhanced Performance

Optimized core operations deliver faster execution and reduced memory footprint.

Language Enhancements

New syntax features and APIs make PHP more expressive and developer-friendly.

Improved Type Safety

New #[\\NoDiscard] attribute and closures in constants enhance code reliability.

Upcoming PHP Conferences

Connect with the global PHP community at these upcoming events.

PHP Conference Kagawa 2025

Kagawa, Japan

Learn more →

PHP Conference Fukuoka 2025

Fukuoka, Japan

Learn more →

PHP Conference Brazil 2025

Brazil

Learn more →

PHPKonf 2025 Baku

Baku, Azerbaijan

Learn more →

Special Thanks

PHP 8.5 is made possible by the dedication of contributors, sponsors, and the entire PHP community worldwide.