3v4l.org

run code in 300+ PHP versions simultaneously
<?php function failMapException() { try { array_map(function ($n) { throw new \Exception('oops'); }, [1, 2, 3]); } catch (\Exception $e) { } } failMapException();

preferences:
27.22 ms | 404 KiB | 5 Q