3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $severity, string $message, string $file, int $line) { throw new ErrorException($message, $severity, $severity, $file, $line); }); if (!$resource = @stream_socket_client('tcp://123.456.789', $errno, $errstr)) { throw new Exception($errstr); }
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught ErrorException: stream_socket_client(): Unable to connect to tcp://123.456.789 (Failed to parse address "123.456.789") in /in/e3vc2:6 Stack trace: #0 [internal function]: {closure}(2, 'stream_socket_c...', '/in/e3vc2', 6) #1 /in/e3vc2(6): stream_socket_client('tcp://123.456.7...', 0, '') #2 {main} thrown in /in/e3vc2 on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught ErrorException: stream_socket_client(): unable to connect to tcp://123.456.789 (Failed to parse address "123.456.789") in /in/e3vc2:6 Stack trace: #0 [internal function]: {closure}(2, 'stream_socket_c...', '/in/e3vc2', 6, Array) #1 /in/e3vc2(6): stream_socket_client('tcp://123.456.7...', 0, 'Failed to parse...') #2 {main} thrown in /in/e3vc2 on line 6
Process exited with code 255.
Output for 5.6.0 - 5.6.40

Process exited with code 255.

preferences:
212.57 ms | 401 KiB | 283 Q