3v4l.org

run code in 300+ PHP versions simultaneously
<?php chdir('/tmp'); $path = str_repeat('x', 101) . '.socket'; $s = stream_socket_server('unix://' . $path); $c = stream_socket_client('unix://' . $path); var_dump(stream_socket_get_name($c, true));
Output for git.master, git.master_jit
Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /in/hSRCU on line 6 Warning: stream_socket_server(): Unable to connect to unix://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.socket (Unknown error) in /in/hSRCU on line 6 Notice: stream_socket_client(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /in/hSRCU on line 7 Warning: stream_socket_client(): Unable to connect to unix://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.socket (Connection refused) in /in/hSRCU on line 7 Fatal error: Uncaught TypeError: stream_socket_get_name(): Argument #1 ($socket) must be of type resource, bool given in /in/hSRCU:9 Stack trace: #0 /in/hSRCU(9): stream_socket_get_name(false, true) #1 {main} thrown in /in/hSRCU on line 9
Process exited with code 255.
Output for rfc.property-hooks
Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /in/hSRCU on line 6 Notice: stream_socket_client(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /in/hSRCU on line 7 string(107) "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.socke"

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