3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<table border = "1"> <tr> <td><b>x</b></td> <td><b>x<sup>2</sup></b></td> </tr> <?php for ($i = 1; $i < 10; $i++) { $x = $i*$i; echo "<tr> <td>$i</td> <td>$x</td> </tr>"; } ?> </table>
Output for 4.3.0 - 7.1.0
<table border = "1"> <tr> <td><b>x</b></td> <td><b>x<sup>2</sup></b></td> </tr> <tr> <td>1</td> <td>1</td> </tr><tr> <td>2</td> <td>4</td> </tr><tr> <td>3</td> <td>9</td> </tr><tr> <td>4</td> <td>16</td> </tr><tr> <td>5</td> <td>25</td> </tr><tr> <td>6</td> <td>36</td> </tr><tr> <td>7</td> <td>49</td> </tr><tr> <td>8</td> <td>64</td> </tr><tr> <td>9</td> <td>81</td> </tr></table>