3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $result = array_reduce(range('S', 'O'), function($c, $r){ var_dump($c); throw new Exception("Cake!"); }); var_dump($result); } catch (Exception $e) { echo "Exception: $e->getMessage()"; }

preferences:
42.15 ms | 402 KiB | 5 Q