3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (range(22, 28, 3) as $number) { echo $number."<br />"; } ?>
Output for 5.0.0 - 7.1.0
22<br />25<br />28<br />
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
<br /> <b>Warning</b>: Wrong parameter count for range() in <b>/in/tcFPB</b> on line <b>3</b><br /> <br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/in/tcFPB</b> on line <b>3</b><br />
Output for 4.3.11
<br /> <b>Warning</b>: Wrong parameter count for range() in <b>/in/tcFPB</b> on line <b>3</b><br />