PHP 8.5
Here are all the posts tagged PHP 8.5.
November 21, 2025 • 5 min read
Discover the main new features in PHP 8.5
As has been tradition over the last decade, PHP gets a new version every year, and now it's PHP 8.5's turn. If you follow this blog or my LinkedIn, you've probably already seen some of these new...
May 18, 2025 • 2 min read
The "Pipe" Operator |> in PHP 8.5
🐘 PHP 8.5 will bring a new operator: the Pipe Operator |>.
Yes, an old proposal for the language will finally be implemented, adding a new operator to PHP.
The operator has the...
May 7, 2025 • 1 min read
array_first() and array_last() in PHP 8.5
🐘 PHP 8.5 will have two more array functions: array_first() and array_last().
Finally, we'll have dedicated functions to get the first and last elements of an array,...
March 5, 2025 • 1 min read
Marking return values as important (#[\NoDiscard]) in PHP 8.5
A new RFC currently under vote for PHP 8.5 proposes adding the #[\NoDiscard] attribute, which warns when the return value of a function or method isn't used. Ignoring return values can lead to...
December 24, 2024 • 2 min read
Closure support in constant expressions in PHP 8.5
In PHP, Closures are anonymous functions that can be assigned to variables, passed as arguments, or returned by other functions. They're widely used to simplify the creation of...