Dev Tools · 1h ago
PHP 8.6 Quietly Adds Native Epoll/Kqueue Support via Polling API
PHP 8.6 includes a new Polling API that provides native access to epoll, kqueue, and other high-performance I/O multiplexing mechanisms, replacing the outdated stream_select(). The RFC passed with 33 votes in favor and one against. This fills a long-standing gap that forced async libraries like AMPHP and ReactPHP to rely on workarounds.
Meridian48 take
The Polling API is a foundational improvement for PHP's async ecosystem, but its impact will take years to materialize as libraries adopt it.
Read the full reporting
The Polling API Is the Most Underrated RFC PHP Has Shipped in Years →
DEV Community
php-8.6polling-api