PHP 8.6 drops with partial application, polling
PHP 8.6 introduces partial function application, a native nanosecond Duration class, and a low-level Io\Poll API powered by epoll and kqueue. The update also adds structured stream exceptions, default values for readonly properties, and a built-in clamp function.
PHP continues its quiet evolution into a modern, expressive language that encroaches on territory once dominated by Node.js and Go. The addition of first-class polling and functional primitives makes modern asynchronous frameworks significantly more viable without external C extensions.
- –Partial Function Application (? syntax) brings clean functional composition without verbose closure wrappers
- –Built-in Io\Poll unlocks scalable non-blocking I/O via epoll and kqueue for frameworks like ReactPHP, Amp, and FrankenPHP
- –Native Time\Duration provides nanosecond-precision time math, eliminating fragile microsecond integer calculations
- –Structured StreamException handling moves PHP away from legacy warning suppressions toward idiomatic error handling
- –Halved Zend Thread Safety (ZTS) overhead significantly boosts high-throughput threaded runtimes
DISCOVERED
6h ago
2026-11-19
PUBLISHED
9h ago
2026-11-19
RELEVANCE
AUTHOR
netol