PHP 8.5 was released with significant updates, including the long-awaited pipe operator, which facilitates function call chaining for improved code readability. It also introduces a new URI extension that conforms to RFC 3986 and WHATWG standards, addressing the shortcomings of the outdated parse_url() function. Additional features include Clone With for efficient property updates, the #[\NoDiscard] attribute for unused return value warnings, and support for static closures in constant expressions. These enhancements mark a substantial evolution for the scripting language.
Want More Context? 🔎






