VOOZH about

URL: https://www.phoronix.com/news/PHP-8.5-Released

⇱ PHP 8.5 Released With New Pipe Operator, New URI Extension & Clone With - Phoronix


👁 Phoronix

PHP 8.5 Released With New Pipe Operator, New URI Extension & Clone With

Written by Michael Larabel in Programming on 20 November 2025 at 02:19 PM EST. 25 Comments
PHP 8.5 is out today as the annual major feature release for this popular scripting language.

PHP 8.5 delivers many new features including the pipe operator, support for backtraces on fatal errors, support for closures and first-class callables in constant expressions, support for casts in constant expressions, array_first() and array_last() built-in functions finally, and a variety of other improvements.

👁 PHP pipe operator code sample comparison


The pipe operator is one of the main language changes this release. The pipe operator is described in detail on the PHP.net documentation page. There is also now the "NoDiscard" attribute to indicate a function's return value is important and should be consumed.

PHP 8.5 is also looking good in the performance department. In my early benchmarking of PHP 8.5, it's showing some nice performance gains in the generating of the SVG graphs used on Phoronix articles from benchmarking.

Downloads and more details on today's PHP 8.5 release via PHP.net.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.