3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function () { return true; }); function foo() { try { new Closure; return "hello"; } catch (Throwable $t) { return "wat"; } } var_dump(foo());

preferences:
46.77 ms | 402 KiB | 5 Q