Probably you will want to use
// get a list of all the clients that have data to be read from
// if there are no clients with data, go to next iteration
if (socket_select($read, $write = NULL, $except = NULL, NULL) < 1)
continue;
instead
if (socket_select($read, $write = NULL, $except = NULL, 0) < 1)
continue;
which will hang your CPU to 100% (return immediate if nothing to be done)