setAuthArray(array( 'tom' => 'god', 'user' => 'p@ssw0rd' )); echo 'SOCKS5 server requiring authentication listening on ' . $socket->getAddress() . PHP_EOL; $loop->run();