News: 0001593362

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

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

([Programming] 4 Hours Ago PHP 8.5)


PHP 8.5 is out today as the annual major feature release for this popular scripting language.

PHP 8.5 delivers [1]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.

The pipe operator is one of the main language changes this release. The pipe operator is described in detail on the [2]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 [3]PHP.net .



[1] https://www.phoronix.com/news/PHP-8.5-Alpha-1

[2] https://www.php.net/manual/en/language.operators.functional.php

[3] https://www.php.net/archive/2025.php#2025-11-20-3



"Don't talk to me about disclaimers! I invented disclaimers!"
-- The Censored Hacker