3v4l.org

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