The PHP development team has released PHP 8.6, which focuses on simplifying code, optimizing concurrency handling, and strengthening default security settings, while also improving the performance of common operations such as JSON encoding. Key new features include partial function application, which allows developers to pre-fill some parameters to create reusable new functions and reduce repetitive wrapper code. A new IoPoll polling interface has been added that can monitor a large number of data streams simultaneously and invoke native system mechanisms to overcome the scalability limits of the old interface, providing low-level support for high-concurrency processing in asynchronous frameworks. Supporting tools have also been updated, with the addition of nanosecond-precision TimeDuration, a clamp() function for limiting numeric ranges, and support for setting default values directly on readonly properties. On the security front, strict session mode and HttpOnly session cookies are now enabled by default, the SameSite policy is set to Lax, and performance has been optimized for JSON encoding, formatted output, and some array processing operations.
