3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server = stream_socket_server("tcp://[::1]:1337/"); var_dump(stream_socket_get_name($server, false));
Output for git.master, git.master_jit
Warning: stream_socket_server(): php_network_getaddresses: getaddrinfo for ::1 failed: Address family for hostname not supported in /in/biJe1 on line 3 Warning: stream_socket_server(): Unable to connect to tcp://[::1]:1337/ (php_network_getaddresses: getaddrinfo for ::1 failed: Address family for hostname not supported) in /in/biJe1 on line 3 Fatal error: Uncaught TypeError: stream_socket_get_name(): Argument #1 ($socket) must be of type resource, bool given in /in/biJe1:4 Stack trace: #0 /in/biJe1(4): stream_socket_get_name(false, false) #1 {main} thrown in /in/biJe1 on line 4
Process exited with code 255.
Output for rfc.property-hooks
Warning: stream_socket_server(): php_network_getaddresses: getaddrinfo for ::1 failed: Address family for hostname not supported in /in/biJe1 on line 3 Warning: stream_socket_server(): Unable to connect to tcp://[::1]:1337/ (php_network_getaddresses: getaddrinfo for ::1 failed: Address family for hostname not supported) in /in/biJe1 on line 3 Fatal error: Uncaught TypeError: stream_socket_get_name(): Argument #1 ($socket) must be of type resource, false given in /in/biJe1:4 Stack trace: #0 /in/biJe1(4): stream_socket_get_name(false, false) #1 {main} thrown in /in/biJe1 on line 4
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:
60.79 ms | 401 KiB | 8 Q