3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(callable $bar) { throw new \Exception; } try { foo(fn($_) => $_); } catch (\Throwable $e) { var_dump(serialize($e)); }

preferences:
44.33 ms | 405 KiB | 5 Q