3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (range(10, 14.6, 0.5) as $number) { echo $number."<br />"; } ?>
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
10<br />10.5<br />11<br />11.5<br />12<br />12.5<br />13<br />13.5<br />14<br />14.5<br />
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
Warning: Wrong parameter count for range() in /in/30fIj on line 3 Warning: Invalid argument supplied for foreach() in /in/30fIj on line 3
Output for 4.3.11
Warning: Wrong parameter count for range() in /in/30fIj on line 3