3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-01', strtotime('this month', time()));
based on 386Gv
Output for 4.3.5 - 7.1.0
2014-08-01
Output for 4.3.0 - 4.3.4
2014-09-01