3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print date('Y-m-d', strtotime(date('Y-m-d h:i').' - 30 days')); print date('2013-10-04');
Output for 5.1.2 - 7.1.0
2013-09-042013-10-04
Output for 5.1.0 - 5.1.1
1970-01-012013-10-04
Output for 4.3.0 - 5.0.5
2013-11-032013-10-04