3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $menu = array('Home', 'Pagina 1', 'Pagina 2', 'Contact'); function makemenu($array){ echo '<ul>'; foreach($array as $value){ echo '<li>'.$value.'</li>'; } echo '</ul>'; } echo makemenu($menu); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<ul><li>Home</li><li>Pagina 1</li><li>Pagina 2</li><li>Contact</li></ul>