3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(true): ?> <?php echo 'Hello' ?> <?php echo 'World!' ?> <?php $i = 0 ?> <?php while($i < 10): ?> <?php echo $i, '<br>' ?> <?php ++$i ?> <?php endwhile ?> <?php endif ?>
Output for 4.3.0 - 7.1.0
Hello World! 0<br> 1<br> 2<br> 3<br> 4<br> 5<br> 6<br> 7<br> 8<br> 9<br>