3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $drst = strtotime('-3 days', strtotime('2013-10-31 00:00:00')); echo "\r\n"; echo $drstRev = strtotime('-1 month', $drst); echo "\r\n"; echo date('Y-m-d', $drstRev); echo "\r\n"; echo $drst = strtotime('2013-10-30 00:00:00'); echo "\r\n"; echo $drstRev = strtotime('-1 month', $drst); echo "\r\n"; echo date('Y-m-t', $drstRev); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1382914800 1380319200 2013-09-28 1383087600 1380492000 2013-09-30