3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<tr><td>John</td><td>Doe</td></tr><tr><td>Jane</td><td>Doe</td></tr>
Output for hhvm-3.10.0

Process exited with code 137.