3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1; for ($i = 0; $i <= 100; $i++) { if( !($i % 2)) continue; echo "a counted while i=$i \n"; $a++; } echo "a is $a";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
a counted while i=1 a counted while i=3 a counted while i=5 a counted while i=7 a counted while i=9 a counted while i=11 a counted while i=13 a counted while i=15 a counted while i=17 a counted while i=19 a counted while i=21 a counted while i=23 a counted while i=25 a counted while i=27 a counted while i=29 a counted while i=31 a counted while i=33 a counted while i=35 a counted while i=37 a counted while i=39 a counted while i=41 a counted while i=43 a counted while i=45 a counted while i=47 a counted while i=49 a counted while i=51 a counted while i=53 a counted while i=55 a counted while i=57 a counted while i=59 a counted while i=61 a counted while i=63 a counted while i=65 a counted while i=67 a counted while i=69 a counted while i=71 a counted while i=73 a counted while i=75 a counted while i=77 a counted while i=79 a counted while i=81 a counted while i=83 a counted while i=85 a counted while i=87 a counted while i=89 a counted while i=91 a counted while i=93 a counted while i=95 a counted while i=97 a counted while i=99 a is 51