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, $timeout, $flags)) { throw new Exception($errstr); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ErrorException: Undefined variable $timeout in /in/rhX20:6 Stack trace: #0 /in/rhX20(6): {closure}(2, 'Undefined varia...', '/in/rhX20', 6) #1 {main} thrown in /in/rhX20 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:
55.3 ms | 401 KiB | 8 Q