PHP 8.6 adds Io\Poll, a scalable stream_select() replacement using epoll and kqueue. Build an echo server, handle timeouts, writes and errors step by step.