3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime('2013-02-01'); $end = new DateTime('2013-02-17'); while ($start <= $end) { echo $start->format("m/d/Y") . PHP_EOL; $start->modify("+1 day"); }
Output for 5.3.0 - 7.1.0
02/01/2013 02/02/2013 02/03/2013 02/04/2013 02/05/2013 02/06/2013 02/07/2013 02/08/2013 02/09/2013 02/10/2013 02/11/2013 02/12/2013 02/13/2013 02/14/2013 02/15/2013 02/16/2013 02/17/2013