RUUZEN
IT

PHP 8.6 Released

On November 19, 2026, PHP 8.6 was released for Windows and other supported systems. The release introduces new APIs, types, and changes affecting compatibility.

20 Nov, 14:45Read in Russian
habr.com

On November 19, 2026, PHP 8.6 was released, including builds for Windows. The language now supports partial function application: some arguments can be specified in advance, while the rest are passed via placeholders "?" and "...". The release includes the \Time\Duration class for measuring intervals with nanosecond precision and the clamp() function for restricting a value within a specified range.

The Io\Poll API is designed for simultaneously monitoring multiple streams. It utilizes the mechanism available on the specific system—epoll, kqueue, event ports, or WSAPoll—and can be used in creating event-processing loops. Streams now feature structured error handling with StreamException and StreamError objects. Additionally, the release introduces a built-in SortDirection enumeration, URI construction tools, and ReflectionProperty methods for checking property reads and modifications.

PHP 8.5.13, 8.4.28, 8.3.37, and 8.2.36 were released simultaneously. These versions fix 17 vulnerabilities, seven of which are marked as critical and could lead to remote code execution. PHP 8.6 enables stricter session settings by default and deprecates several features. The branch also includes changes incompatible with previous versions and has transitioned to the BSD-3 license.