PHP 8.6.0 released with polling API and clamp() function
The new PHP release also adds a SortDirection enum and a Time\Duration class, according to LWN.net, which published the news on 19 November 2026.

Key takeaways
- PHP 8.6.0 was released, with LWN.net reporting the news on 19 November 2026.
- The release adds a polling API, a clamp() function, a SortDirection enum and a Time\Duration class.
- LWN.net points to the What's new in 8.6 page for features and to the changelog for the full list of changes.
In this article
What shipped in PHP 8.6.0
LWN.net reported on 19 November 2026 that version 8.6.0 of PHP is now available. PHP is a scripting language widely used to build websites and web applications.
The report highlights four additions: a polling API, a clamp() function, a SortDirection enum and a Time\Duration class. It describes these as the notable changes in the release and directs readers to the project's own documentation for everything else.
What the new features are for

Each addition has a narrow purpose. In general terms, a polling API gives code a way to keep checking a source for new data instead of waiting to be notified. A clamp() function is a helper that holds a value inside a chosen range.
An enum is a type whose values are drawn from a fixed list of named options, which can make code clearer and harder to misuse. A Duration class gives developers a dedicated object for holding a length of time rather than a bare number.
Where to find the full change list
The LWN.net report is short and does not cover every change in the release. It points to a page titled What's new in 8.6 for an overview of the features, and to the changelog for a complete list of changes.
Those two documents are the places to check before planning an upgrade, since they hold the detail that a brief release announcement leaves out.
Sources
- PHP 8.6.0 releasedLWN.net
Spotted a mistake? See our corrections policy. Read how News by OnDevice works in our editorial policy.



