3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime('2013-02-01'); $end = new DateTime('2013-02-17'); $interval = DateInterval::createFromDateString('1 min'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("l Y-m-d") . PHP_EOL; }