3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2014-08-302014-08-312014-09-012014-09-022014-09-032014-09-042014-09-05