3v4l.org

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

preferences:
58.94 ms | 404 KiB | 5 Q