3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('m', strtotime('2025-03-31 -1 month')) . PHP_EOL; echo date('m', strtotime('2025-03-30 -1 month')) . PHP_EOL; echo date('m', strtotime('2025-05-31 -1 month')) . PHP_EOL; echo date('m', strtotime('2025-05-30 -1 month')) . PHP_EOL;

preferences:
23.66 ms | 405 KiB | 5 Q