3v4l.org

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