3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server = stream_socket_server('tcp://127.0.0.1:8080'); $context = stream_context_create(array('socket'=>array('bindto'=>'1.2.3.4:5678'))); $client = stream_socket_client('tcp://127.0.0.1:8080', $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $context); var_dump($client); var_dump(stream_socket_get_name($client, false));
Output for git.master, git.master_jit
Warning: stream_socket_server(): Unable to connect to tcp://127.0.0.1:8080 (Success) in /in/GkN7F on line 3 Warning: stream_socket_client(): Unable to connect to tcp://127.0.0.1:8080 (Unknown error) in /in/GkN7F on line 6 bool(false) Fatal error: Uncaught TypeError: stream_socket_get_name(): Argument #1 ($socket) must be of type resource, bool given in /in/GkN7F:9 Stack trace: #0 /in/GkN7F(9): stream_socket_get_name(false, false) #1 {main} thrown in /in/GkN7F on line 9
Process exited with code 255.
Output for rfc.property-hooks
Warning: stream_socket_server(): Unable to connect to tcp://127.0.0.1:8080 (Success) in /in/GkN7F on line 3 Warning: stream_socket_client(): Unable to connect to tcp://127.0.0.1:8080 (Unknown error) in /in/GkN7F on line 6 bool(false) Fatal error: Uncaught TypeError: stream_socket_get_name(): Argument #1 ($socket) must be of type resource, false given in /in/GkN7F:9 Stack trace: #0 /in/GkN7F(9): stream_socket_get_name(false, false) #1 {main} thrown in /in/GkN7F on line 9
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:
53.74 ms | 401 KiB | 8 Q