3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function createTable($row, $col, $row_info) { echo "<table>"; for($i = 0; $i < $row; $i++) { echo "<tr>"; for($j = 0; $j < $col; $j++) { echo "<td>"; echo "$row_info"; echo "</td>"; } echo "</tr>"; } echo "</table>"; } createTable(4, 1, "Hello"); ?>
based on GieMn
Output for 4.3.0 - 7.2.0
<table><tr><td>Hello</td></tr><tr><td>Hello</td></tr><tr><td>Hello</td></tr><tr><td>Hello</td></tr></table>