3v4l.org

run code in 500+ 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:
35.51 ms | 484 KiB | 6 Q