3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = range(1, 10000, time()); foreach ($data as $k => $v) { echo date('d.m.y H:i:s', $v); }
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: range(): step exceeds the specified range in /in/QYP29 on line 3 Warning: Invalid argument supplied for foreach() in /in/QYP29 on line 5
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: step exceeds the specified range in /in/QYP29 on line 3 Warning: Invalid argument supplied for foreach() in /in/QYP29 on line 7
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
Warning: Wrong parameter count for range() in /in/QYP29 on line 3 Warning: Invalid argument supplied for foreach() in /in/QYP29 on line 5
Output for 4.3.11
Warning: Wrong parameter count for range() in /in/QYP29 on line 3