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 ( (bool) $i++ & (bool) $j++ ) { echo "2up\n"; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
i = 0 ; j = 5 i = 1 ; j = 6 2up i = 2 ; j = 7 2up i = 3 ; j = 8 2up i = 4 ; j = 9 2up