3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new \DateTime('midnight first day of this month'); var_dump($start->format('m d Y H i s'));
based on IrvYb
Output for 5.3.20 - 7.3.0
string(19) "12 01 2015 00 00 00"