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 git.master, git.master_jit, rfc.property-hooks
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.

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:
58.07 ms | 401 KiB | 8 Q