3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { for($i = 0; $i < 5; $i++){ try { throw new \Exception('not okay'); } catch(\Exception $e) { var_dump('1'); } var_dump('2'); } } catch(\Exception $e) { var_dump($e); }
based on mWE8d
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2" string(1) "1" string(1) "2"