3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start_time =date("Y-m-d H:i:s",strtotime("-3 month")); var_dump($start_time);
based on 6bVXI
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(19) "2014-07-22 05:08:22"
Output for 5.0.0 - 5.0.2
string(19) "2014-07-22 00:00:00"