3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('default_socket_timeout', -1); $fp = stream_socket_client("tls://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.0.2, 8.0.5, 8.0.15, 8.0.23, 8.0.28 - 8.0.29, 8.1.2, 8.1.6 - 8.1.7, 8.1.11 - 8.1.13, 8.2.2, 8.2.4, 8.2.8, 8.2.16 - 8.2.17, 8.3.0, 8.3.4
Warning: stream_socket_client(): Unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32765)<br />
Output for 8.0.0, 8.0.9, 8.0.14, 8.0.18, 8.0.21 - 8.0.22, 8.0.27, 8.1.0, 8.1.3 - 8.1.4, 8.1.14, 8.1.16, 8.1.19, 8.1.21, 8.1.24 - 8.1.25, 8.2.3, 8.2.7, 8.2.9 - 8.2.10, 8.3.1, 8.3.3
Warning: stream_socket_client(): Unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32767)<br />
Output for 8.0.1, 8.0.3, 8.0.6 - 8.0.8, 8.0.11, 8.0.16 - 8.0.17, 8.0.25, 8.1.1, 8.1.5, 8.1.8 - 8.1.9, 8.1.15, 8.1.26 - 8.1.27, 8.2.0, 8.2.5, 8.2.11, 8.2.13 - 8.2.14, 8.3.2
Warning: stream_socket_client(): Unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32766)<br />
Output for 8.0.10, 8.0.12 - 8.0.13, 8.0.19 - 8.0.20, 8.0.24, 8.0.26, 8.0.30, 8.1.10, 8.1.17 - 8.1.18, 8.1.20, 8.1.22 - 8.1.23, 8.2.1, 8.2.6, 8.2.12, 8.2.15
Warning: stream_socket_client(): Unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32764)<br />
Output for 7.2.0 - 7.2.33, 7.3.30 - 7.3.33, 7.4.0 - 7.4.33
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (0)<br />
Output for 7.3.29
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (21907)<br />
Output for 7.3.28
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (22075)<br />
Output for 7.3.27
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (21880)<br />
Output for 7.3.26
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (22079)<br />
Output for 7.3.25
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (21897)<br />
Output for 7.3.24
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (21881)<br />
Output for 7.3.23
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (21929)<br />
Output for 7.3.21
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (22009)<br />
Output for 7.3.20
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (22048)<br />
Output for 7.3.19
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (22001)<br />
Output for 7.3.18
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (21895)<br />
Output for 7.3.17
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (21869)<br />
Output for 7.3.16
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (22096)<br />
Output for 7.3.0 - 7.3.12
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (1852400175)<br />
Output for 7.1.33
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32738)<br />
Output for 7.1.32
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32548)<br />
Output for 7.1.31
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32640)<br />
Output for 7.1.30
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32608)<br />
Output for 7.1.29
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32720)<br />
Output for 7.1.28
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32639)<br />
Output for 7.1.27
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32561)<br />
Output for 7.1.26
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32615)<br />
Output for 7.1.25
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32510)<br />
Output for 7.1.20
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in /in/hKDBE on line 5 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP? (32712)<br />
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Warning: stream_socket_client(): unable to connect to tls://echo.websocket.org (Failed to parse address "echo.websocket.org") in /in/hKDBE on line 5 Failed to parse address "echo.websocket.org" (0)<br />

preferences:
238.06 ms | 402 KiB | 280 Q