3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<table><?= implode("\n", array_map(function($i) {return sprintf('<tr><td>%d</td></tr>', $i);}, range(1,10))); ?></table>
Output for 5.4.0 - 7.1.0
<table><tr><td>1</td></tr> <tr><td>2</td></tr> <tr><td>3</td></tr> <tr><td>4</td></tr> <tr><td>5</td></tr> <tr><td>6</td></tr> <tr><td>7</td></tr> <tr><td>8</td></tr> <tr><td>9</td></tr> <tr><td>10</td></tr></table>
Output for 4.3.0 - 5.3.29
<table><?= implode("\n", array_map(function($i) {return sprintf('<tr><td>%d</td></tr>', $i);}, range(1,10))); ?></table>