VOOZH about

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

⇱ PHP 8.5 Alpha 1 Released With New Features - Phoronix


👁 Phoronix

PHP 8.5 Alpha 1 Released With New Features

Written by Michael Larabel in Programming on 9 July 2025 at 06:21 AM EDT. 16 Comments
The first alpha release of PHP 8.5 was issued last week in kicking off the release cycle in working toward the official PHP 8.5.0 release later in the year.

Some of the changes to be found with the PHP 8.5 Alpha 1 development release include:

- Support for Closures and first-class callables in constant expressions.

- Support for backtraces on fatal errors.

- Adding the #[\NoDiscard] attribute to indicate a function's return value is important and should be consumed.

- Support for a (void) cast to indicate that not using a value is intentional.

- Support for casts in constant expressions.

- Added the pipe operator.

- Added array_first() and array_last().

- The PHP CLI binary now supports the "--ini=diff" option to print INI settings changed from the built-in default PHP settings.

PHP 8.5 is working its way toward the stable release in late November while until then will be multiple alpha and beta releases along with a few release candidates throughout October and November.

👁 PHP logo


Downloads and more details on the PHP 8.5 Alpha 1 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.