3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! echo date('Y-m-d h:m:i', strtotime('2013-07-31 23:59:59 - 1 MONTH'));
Output for 5.1.2 - 7.2.0
2013-07-01 11:07:59
Output for 5.1.0 - 5.1.1
1970-01-01 01:01:00
Output for 4.3.0 - 5.0.5
2013-08-31 11:08:59