3v4l.org

run code in 200+ 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 - 7.2.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 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