3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); }
based on rhX20
Output for 7.0.0 - 7.2.8
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 hhvm-3.22.0
Fatal error: Uncaught exception 'Exception' with message 'System error' in /in/e3vc2:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught exception 'Exception' with message 'System error' in /in/e3vc2:7 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30

Process exited with code 255.