Code
Result

PHP code example: socket_select

Runs the select() system call on the given arrays of sockets with a specified timeout. See documentation.

You can try this function yourself. Just edit the code and on "Run" to see the result.