3v4l.org

run code in 300+ PHP versions simultaneously
<?php print date('m', strtotime('2013-10-31 -1 month')) . "\n" . date('m', strtotime('2013-10-31 first day of 1 month ago'));

preferences:
33.36 ms | 402 KiB | 5 Q