3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr=array(0 => array('first_name' => 'John', 'last_name' => 'Doe'), 1=> array('first_name' => 'Jane', 'last_name' => 'Doe') ); foreach($arr as $key => $value) { echo '<tr>'; echo '<td>' . $value['first_name'] . '</td>'; echo '<td>' . $value['last_name'] . '</td>'; echo '</tr>'; } ?>
based on MDujY
Output for 4.3.0 - 7.2.0
<tr><td>John</td><td>Doe</td></tr><tr><td>Jane</td><td>Doe</td></tr>