3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo () { throw new \Exception("For example you gave me a multidimesional array dude, I'm not built for that!"); } try { array_map('foo', [1]); } catch(\Exception $e) { echo 'I should have validated this... ಥ_ಥ'; }
based on PZFrf
Output for 7.0.0 - 7.2.0
I should have validated this... ಥ_ಥ
Output for 5.4.2 - 5.6.28
Warning: array_map(): An error occurred while invoking the map callback in /in/DcjCo on line 7 I should have validated this... ಥ_ಥ
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/DcjCo on line 7
Process exited with code 255.