3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $code, string $message, string $file, int $line) : never { throw new ErrorException($message, $code, E_NOTICE, $file, $line); }, ~0); try { $zero = 0 / 0; } catch (Throwable $thrown) { var_dump((string) $thorwn); } ?>
Output for git.master_jit, git.master
Fatal error: Uncaught ErrorException: Undefined variable $thorwn in /in/57ODt:8 Stack trace: #0 /in/57ODt(8): {closure:/in/57ODt:2}(2, 'Undefined varia...', '/in/57ODt', 8) #1 {main} thrown in /in/57ODt on line 8
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:
25.85 ms | 405 KiB | 5 Q