3v4l.org

run code in 300+ PHP versions simultaneously
<?php $context = stream_context_create(array('socket' => array('backlog' => 10))); $server = stream_socket_server('localhost:0', $errno, $errstr, STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, $context); var_dump(stream_context_get_options($server));
Output for git.master, git.master_jit
Warning: stream_socket_server(): php_network_getaddresses: getaddrinfo for localhost failed: System error in /in/hB4Tc on line 4 Warning: stream_socket_server(): Unable to connect to localhost:0 (php_network_getaddresses: getaddrinfo for localhost failed: System error) in /in/hB4Tc on line 4 Fatal error: Uncaught TypeError: stream_context_get_options(): Argument #1 ($stream_or_context) must be of type resource, bool given in /in/hB4Tc:6 Stack trace: #0 /in/hB4Tc(6): stream_context_get_options(false) #1 {main} thrown in /in/hB4Tc on line 6
Process exited with code 255.
Output for rfc.property-hooks
Warning: stream_socket_server(): php_network_getaddresses: getaddrinfo for localhost failed: System error in /in/hB4Tc on line 4 Warning: stream_socket_server(): Unable to connect to localhost:0 (php_network_getaddresses: getaddrinfo for localhost failed: System error) in /in/hB4Tc on line 4 Fatal error: Uncaught TypeError: stream_context_get_options(): Argument #1 ($stream_or_context) must be of type resource, false given in /in/hB4Tc:6 Stack trace: #0 /in/hB4Tc(6): stream_context_get_options(false) #1 {main} thrown in /in/hB4Tc on line 6
Process exited with code 255.

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:
157.73 ms | 408 KiB | 5 Q