3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 1; $i < 11; $i++){ try{ if ($i%2==0){ throw new Exception('not by 2'); } } catch(Exception $ex){ echo $ex->getMessage(); echo PHP_EOL; echo $i; echo PHP_EOL; continue; } echo "outter $i"; echo PHP_EOL; }
based on Uutf9
Output for 5.6.38 - 7.3.0rc3
outter 1 not by 2 2 outter 3 not by 2 4 outter 5 not by 2 6 outter 7 not by 2 8 outter 9 not by 2 10