3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $now= date('m-d-Y'); echo date('d-m-Y', strtotime($now ."-6 months"));
Output for 5.1.3 - 7.1.0
09-03-2014
Output for 5.1.0 - 5.1.2
01-01-1970
Output for 4.3.0 - 5.0.5
04-09-2014