3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return bar(); } function bar(bool $x = true) { return ($x ? 'qux' : 'foobar')(); } function qux() { return bar(false); } function foobar() { return new \Exception("AAAAARGH"); } $terror = foo(); throw $terror;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
157.83 ms | 2787 KiB | 12 Q