3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $STOP = 5; $i = $j = 0; while($STOP-- > 0) { echo "i = $i ; j = $j\n"; if($i++ && $j++) { echo "2up\n"; } }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
i = 0 ; j = 0 i = 1 ; j = 0 i = 2 ; j = 1 2up i = 3 ; j = 2 2up i = 4 ; j = 3 2up
Output for hhvm-3.10.0

Process exited with code 153.