3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo ($i) { echo $i; throw new \Exception(); } try { array_map('foo', [1, 2]); } catch(\Exception $e) { echo 'Exception caught'; }
based on PZFrf
Output for 7.0.0 - 7.2.0
1Exception caught
Output for 5.4.0 - 5.6.28
1 Warning: array_map(): An error occurred while invoking the map callback in /in/7k3ri on line 8 Exception caught