3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $name = 'Duane'; $monthsAtMSE = 8; $loopCount = 10; while($loopCount > 0){ if($monthsAtMSE < 12){ echo $name . " has been at MSE for " . $monthsAtMSE . " months <br>"; } $monthsAtMSE = $monthsAtMSE + 1; $loopCount = $loopCount - 1; }
Output for 4.3.0 - 7.1.0
Duane has been at MSE for 8 months <br>Duane has been at MSE for 9 months <br>Duane has been at MSE for 10 months <br>Duane has been at MSE for 11 months <br>