3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = new \DateTime('previous month first day of midnight'); //$f->modify('first day of'); echo $f->format('Y-m-d H:i:s');
based on Anm7i
Output for 5.3.21 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.0
2015-11-01 00:00:00