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 git.master, git.master_jit
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 rfc.property-hooks
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 />

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
33.4 ms | 407 KiB | 5 Q