3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $menuitems = array(array('name'=>'First menu item', 'link'=>'http://firstitem.com','class'=>'normal'), array('name'=>'Second menu item', 'link'=>'http://second.com','class'=>'normal'), array('name'=>'Third menu item', 'link'=>'http://third.com','class'=>'normal') ); foreach ($menuitems as $menuitem) { echo "<a href='{$menuitem['link']}' class='{$menuitem['class']}'>{$menuitem['name']}</a>"; }
based on 1iqt2
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<a href='http://firstitem.com' class='normal'>First menu item</a><a href='http://second.com' class='normal'>Second menu item</a><a href='http://third.com' class='normal'>Third menu item</a>