3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = '2014-08-29'; for ($i = 1; $i <= 7; $i++) { echo date('Y-m-d', strtotime($dt . "+{$i} days")); }
based on jGSsp
Output for 4.3.0 - 7.2.0
2014-08-302014-08-312014-09-012014-09-022014-09-032014-09-042014-09-05