3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime('2013-01-31'); $end = new DateTime('2013-02-05'); while($start <= $end) { echo $start->format("m/d/Y"). PHP_EOL; $start->modify("+1 day"); }
Output for 5.3.0 - 7.1.0
01/31/2013 02/01/2013 02/02/2013 02/03/2013 02/04/2013 02/05/2013