3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { function foo () { throw new \Exception(); } array_map('foo', [1]); } catch (\Exception $e) { echo $e->getMessage(); }

preferences:
43.51 ms | 402 KiB | 5 Q