3v4l.org

run code in 300+ PHP versions simultaneously
<?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); }
Output for 8.3.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? (31690)<br />
Output for 8.3.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? (30279)<br />
Output for 8.3.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? (30193)<br />
Output for 8.0.0 - 8.0.1, 8.0.3, 8.0.6, 8.0.12 - 8.0.13, 8.0.27, 8.1.0, 8.1.2, 8.1.4, 8.1.17, 8.1.25 - 8.1.26, 8.2.11, 8.2.16, 8.3.1 - 8.3.2, 8.3.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? (32766)<br />
Output for 8.0.2, 8.0.7, 8.0.9, 8.0.11, 8.0.17, 8.0.19, 8.0.22 - 8.0.24, 8.0.29, 8.1.1, 8.1.3, 8.1.5, 8.1.9, 8.1.12, 8.1.19 - 8.1.21, 8.2.0, 8.2.2, 8.2.4 - 8.2.5, 8.2.9, 8.2.12, 8.3.0, 8.3.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? (32765)<br />
Output for 8.2.18
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? (30362)<br />
Output for 8.0.5, 8.0.8, 8.0.10, 8.0.15, 8.0.20 - 8.0.21, 8.0.26, 8.1.7 - 8.1.8, 8.1.10, 8.1.13 - 8.1.16, 8.1.18, 8.1.23 - 8.1.24, 8.2.1, 8.2.8, 8.2.13, 8.2.15, 8.2.17
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? (32767)<br />
Output for 8.0.14, 8.0.16, 8.0.18, 8.0.25, 8.0.28, 8.0.30, 8.1.6, 8.1.11, 8.1.22, 8.1.27, 8.2.3, 8.2.6 - 8.2.7, 8.2.10, 8.2.14
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? (32764)<br />
Output for 8.1.28
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? (31724)<br />
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.2.0 - 7.2.33, 7.3.30, 7.3.32 - 7.3.33, 7.4.0 - 7.4.33
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.3.31
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? (762851182)<br />
Output for 7.3.29
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? (21858)<br />
Output for 7.3.28
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? (21982)<br />
Output for 7.3.16, 7.3.27
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? (21980)<br />
Output for 7.3.26
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? (21901)<br />
Output for 7.3.25
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? (22055)<br />
Output for 7.3.24
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? (22017)<br />
Output for 7.3.23
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? (21948)<br />
Output for 7.3.21
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? (21969)<br />
Output for 7.3.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? (21914)<br />
Output for 7.3.19
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? (22053)<br />
Output for 7.3.18
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? (22071)<br />
Output for 7.3.17
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? (22004)<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 />

preferences:
161.46 ms | 402 KiB | 215 Q