3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); for ( $time = new DateTime('2013-11-01 00:00:00'), $end = new DateTime('2013-11-05 00:00:00'); $time <= $end; $time->add('P1D') ) { var_dump($time->format('Y-m-d'); }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
Parse error: syntax error, unexpected ';' in /in/vhGir on line 11
Process exited with code 255.

preferences:
181.15 ms | 1387 KiB | 58 Q