3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = stream_socket_server('unix://' .sys_get_temp_dir().'/'. str_repeat('x', 200), $errno, $errstr); var_dump($s, $errno, $errstr);
Output for 8.2.21 - 8.2.29, 8.3.9 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 107 bytes and was truncated in /in/4OPt0 on line 3 resource(5) of type (stream) int(0) string(0) ""
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 7.0.0 - 7.0.24, 7.1.0 - 7.1.29, 7.1.31 - 7.1.33, 7.2.6 - 7.2.17, 7.2.19 - 7.2.20, 7.2.24 - 7.2.33, 7.3.0 - 7.3.2, 7.3.5 - 7.3.10, 7.3.16 - 7.3.31, 7.4.3 - 7.4.25, 7.4.27, 7.4.33, 8.0.0 - 8.0.14, 8.0.16 - 8.0.21, 8.0.24, 8.0.27 - 8.0.30, 8.1.0 - 8.1.14, 8.1.16 - 8.1.33, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /in/4OPt0 on line 3 resource(5) of type (stream) int(0) string(0) ""
Output for 8.0.15, 8.0.22 - 8.0.23, 8.0.25 - 8.0.26, 8.1.15
Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /in/4OPt0 on line 3 Warning: stream_socket_server(): Unable to connect to unix:///tmp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Unknown error) in /in/4OPt0 on line 3 bool(false) int(0) string(0) ""
Output for 7.1.30, 7.2.18, 7.2.21 - 7.2.23, 7.3.3 - 7.3.4, 7.3.11 - 7.3.12, 7.4.0, 7.4.26, 7.4.28 - 7.4.32
Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /in/4OPt0 on line 3 Warning: stream_socket_server(): unable to connect to unix:///tmp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Unknown error) in /in/4OPt0 on line 3 bool(false) int(0) string(0) ""
Output for 7.3.32 - 7.3.33
resource(5) of type (stream) int(0) string(0) ""

preferences:
180.83 ms | 413 KiB | 5 Q