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()); } }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
155.66 ms | 2284 KiB | 10 Q