3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lastWeek = new \DateTime('-7 days'); $interval = new \DateInterval('P1D'); $period = new \DatePeriod(new \DateTime(), $interval, $lastWeek); var_dump(iterator_to_array($period);
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected ';' in /in/nqIhW on line 5
Process exited with code 255.