3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $server = stream_socket_server("unix://\0/foo/bar"); var_dump(stream_socket_get_name($server, false)); var_dump(stream_socket_get_name($server, true));
Output for 7.0.25 - 7.0.26, 7.1.11 - 7.2.6
bool(false) bool(false)
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.24, 7.1.0 - 7.1.10
string(9) "/foo/bar" bool(false)
Output for hhvm-3.22.0
string(0) "" Warning: unable to retrieve peer name [107]: Transport endpoint is not connected in /in/RtaV2 on line -1 bool(false)
Output for hhvm-3.21.3
string(0) "" Warning: unable to retrieve peer name [107]: Transport endpoint is not connected in /in/RtaV2 on line 5 bool(false)
Output for hhvm-3.18.5
string(1) ":" Warning: unable to retrieve peer name [107]: Transport endpoint is not connected in /in/RtaV2 on line 5 bool(false)