3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('default_socket_timeout', -1); $fp = stream_socket_client("http://echo.websocket.org", $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { fwrite($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\nAccept: */*\r\n\r\n"); while (!feof($fp)) { echo fgets($fp, 1024); } fclose($fp); }
based on hKDBE
Output for 5.5.0 - 5.6.28, 7.2.0 - 7.2.6
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (0)<br />
Output for 7.1.20
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32517)<br />
Output for 7.1.10
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (21905)<br />
Output for 7.1.7
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32645)<br />
Output for 7.1.6
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32624)<br />
Output for 7.1.5
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32588)<br />
Output for 7.1.0
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32673)<br />
Output for 7.0.20
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32654)<br />
Output for 7.0.6
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32602)<br />
Output for 7.0.5
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32523)<br />
Output for 7.0.4
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32760)<br />
Output for 7.0.3
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32606)<br />
Output for 7.0.2
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32583)<br />
Output for 7.0.1
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32747)<br />
Output for 7.0.0
Warning: stream_socket_client(): unable to connect to http://echo.websocket.org (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /in/dgb2d on line 5 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (32508)<br />