3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d H:i:s',strtotime("last month"));
based on 0pMpp
Output for 4.3.0 - 4.4.9, 5.0.3 - 7.1.0
2014-08-02 23:51:59
Output for 5.0.0 - 5.0.2
2014-08-02 00:00:00