3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $m = new \DateTime('today midnigth'); var_dump($m);die; $startDate = new \DateTime('-1 day'); $finishDate = new \DateTime('+4 day'); $period = new \DatePeriod($startDate, new \DateInterval('P1D'), $finishDate); var_dump($period->start);
based on 5RhPq