3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('now'); $date->format('DDMMYYYY'); for ($i = 1; $i <= 10; $i++) { $date->modify('+1 day'); echo $date } ?>
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/RJM7o on line 9
Process exited with code 255.

preferences:
190.69 ms | 1395 KiB | 67 Q