3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function() { eval('class Foo {'); // syntax error }); spl_autoload_register(function() { throw new Exception(); }); try { new Widget(); } catch (Throwable $t) { for ($i = 1; $t; $t = $t->getPrevious()) { printf("#%d %s: %s in %s:%d\n", $i++, get_class($t), $t->getMessage(), $t->getFile(), $t->getLine()); } }
Output for git.master, git.master_jit, rfc.property-hooks
#1 ParseError: Unclosed '{' in /in/DXGtj(4) : eval()'d code:1

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