3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cars=array(array("bmw",20,10),array("benz",30,10),array("gator",20,40),array("ferrari",15,60)); for ($row = 0; $row < 4; $row++) { echo "<p><b>Row number $row</b></p>"; echo "<ul>"; for ($col = 0; $col < 3; $col++) { echo "<li>".$cars[$row][$col]."</li>"; } echo "</ul>"; }
based on TP1QB
Output for 4.3.0 - 7.1.0
<p><b>Row number 0</b></p><ul><li>bmw</li><li>20</li><li>10</li></ul><p><b>Row number 1</b></p><ul><li>benz</li><li>30</li><li>10</li></ul><p><b>Row number 2</b></p><ul><li>gator</li><li>20</li><li>40</li></ul><p><b>Row number 3</b></p><ul><li>ferrari</li><li>15</li><li>60</li></ul>