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"; } $monthsAtMSE = $monthsAtMSE + 1; $loopCount = $loopCount - 1; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Duane has been at MSE for 8 monthsDuane has been at MSE for 9 monthsDuane has been at MSE for 10 monthsDuane has been at MSE for 11 months