3v4l.org

run code in 200+ 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 - 7.2.0
white, green, red, </br> <ul> <li></li> <li></li> <li></li> </ul>