Wednesday 18 November 2026 Edition compiled at 07.45 NL EN FR
← Tech · Programming languages
Tech · Programming languagesPHP

PHP 8.6 arrives on Thursday, with functions you can fill in halfway and stricter default settings for sessions

The new version also brings clamp(), a class for durations and a long list of old functions slated for removal.

· latest source update di · 3 sources · Laravel News, Zend, stitcher.io
Illustration for this article

The next version of PHP, 8.6, is scheduled for Thursday 19 November. Laravel News updated its overview of the new features as recently as Tuesday, and Zend and developer Brent Roose of stitcher.io also list the changes. According to Zend, the release candidates ran until 5 November.

The most striking addition is partial function application: when calling a function, you can use a question mark to leave slots open for arguments that will follow later, and you get a new callable function back. Zend calls it the feature the team is most looking forward to, while Roose points out that it pairs well with the pipe operator from the previous version. There is also a built-in clamp() function that keeps a value between a minimum and a maximum, a Time\Duration class for durations down to the nanosecond, and a SortDirection enum for sort order.

Developers of frameworks and asynchronous software get a new Polling API, which according to Roose can be faster than the old stream_select() at scale, although it does not add an event loop itself. Readonly properties can now have a default value. Laravel News also reports that the JIT compiler now works on thread-safe builds on Apple Silicon.

Anyone upgrading should be careful, though. Three session settings now default to safer values, including cookies with SameSite set to Lax, and Roose warns that some applications will need adjusting as a result. There is also a series of deprecation warnings for outdated constructs, such as a return in a finally block and functions like is_double() and strcoll(). A proposal to deprecate list() did not pass, according to Laravel News.

Spotted a mistake in this article? Let us know.