3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = new \DateTime('-2 weeks'): $end = new \DateTime(); $interval = new DateInterval('P1D'); var_dump(iterator_to_array(new \DatePeriod($start, $interval, $end)));
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected ':' in /in/5tMAk on line 2
Process exited with code 255.