3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $color = array('white', 'green', 'red'); foreach($color as $colors){ echo $colors. ", "; } ?> </br> <?php foreach($color as $colors){ echo "<ul>"; echo "<li> $colors <br></li>"; echo "</ul>"; } ?>
based on Cvscm
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> white <br></li></ul><ul><li> green <br></li></ul><ul><li> red <br></li></ul>