current
PHP 8.6.0 released November 19 2026
Partial function application
Some arguments can be supplied in advance using ? as a placeholder
The call returns a closure that accepts the rest
$supportsPfa = array_filter(
$versions,
version_compare(?, '8.6', '>='),
);
Time Duration
\Time\Duration represents elapsed time with nanosecond precision
It is independent of timezone and suited to timeouts and benchmarks
Polling API
Io\Poll multiplexes streams using epoll, kqueue, or event ports
It is a foundation for event loop libraries rather than a direct replacement for application code
clamp
clamp($value, $min, $max);
Returns the value when it is inside the range, otherwise the nearest boundary Works with any comparable value
SortDirection
A built in enum with Ascending and Descending
Libraries can accept it instead of inventing their own integer flags
Deprecated habits
is_double,is_long,is_integer,doublevalspl_object_hashin favour ofspl_object_idmb_eregfamily in favour of PCRE with theumodifierreturninsidefinally- returning a value from
__construct
More features are listed upstream Read them before upgrading a production tree
End
Current means current An old alias with a familiar name is not a neutral choice
Posted