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 a=$a \n"; $a++; } echo "a is $a";
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
a counted while a=1 a counted while a=2 a counted while a=3 a counted while a=4 a counted while a=5 a counted while a=6 a counted while a=7 a counted while a=8 a counted while a=9 a counted while a=10 a counted while a=11 a counted while a=12 a counted while a=13 a counted while a=14 a counted while a=15 a counted while a=16 a counted while a=17 a counted while a=18 a counted while a=19 a counted while a=20 a counted while a=21 a counted while a=22 a counted while a=23 a counted while a=24 a counted while a=25 a counted while a=26 a counted while a=27 a counted while a=28 a counted while a=29 a counted while a=30 a counted while a=31 a counted while a=32 a counted while a=33 a counted while a=34 a counted while a=35 a counted while a=36 a counted while a=37 a counted while a=38 a counted while a=39 a counted while a=40 a counted while a=41 a counted while a=42 a counted while a=43 a counted while a=44 a counted while a=45 a counted while a=46 a counted while a=47 a counted while a=48 a counted while a=49 a counted while a=50 a is 51
Output for hhvm-3.10.0

Process exited with code 153.