3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime('2013-01-31'); $end = new DateTime('2013-02-05'); while($start <= $end) { echo $start->format("d.m.Y"). PHP_EOL; $start->modify("+1 day"); }
based on TUcnB
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0beta1
31.01.2013 01.02.2013 02.02.2013 03.02.2013 04.02.2013 05.02.2013