3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 1; $i <= 12; $i++) { echo $i . ' ' . ceil($i / 4) . '<br>'; }
Output for 4.3.0 - 7.1.0
1 1<br>2 1<br>3 1<br>4 1<br>5 2<br>6 2<br>7 2<br>8 2<br>9 3<br>10 3<br>11 3<br>12 3<br>