3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 0; $j=0; while($i <= 5){ echo 'While Loop is going to start'; echo 'Now number is '.$j; while ($j<$i){ $j++; echo 'Now number is '.$j; } $i++; $j=0; } echo 'Continue to running script'; ?>
Output for 4.3.0 - 7.1.0
While Loop is going to startNow number is 0While Loop is going to startNow number is 0Now number is 1While Loop is going to startNow number is 0Now number is 1Now number is 2While Loop is going to startNow number is 0Now number is 1Now number is 2Now number is 3While Loop is going to startNow number is 0Now number is 1Now number is 2Now number is 3Now number is 4While Loop is going to startNow number is 0Now number is 1Now number is 2Now number is 3Now number is 4Now number is 5Continue to running script