3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $color = array('white', 'green', 'red'); foreach($color as $colors){ echo $colors. ", "; } ?> </br> <ul> <?php for($i = 0; $i< 3; $i++){?> <li><?php $color[$i]; ?></li> <?php } ?> </ul>
based on pE0Kb
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
white, green, red, </br> <ul> <li></li> <li></li> <li></li> </ul>