3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time1 = mktime(0, 0, 0, date("m")-6, date("d"), date("Y")); $heute = date_create('now'); $start = date_modify($heute, '-1 week'); for($x=$start; $x<$heute; date_modify($x, '+1 day')) { echo date_format($x, 'Ymd'); echo "<br>"; } ?>
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '{' in /in/2uC4W on line 5
Process exited with code 255.