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;
Output for 8.3.5 - 8.3.26, 8.4.9 - 8.4.13
03 03 05 04

preferences:
45.42 ms | 406 KiB | 5 Q