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;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.130.0110.01019.48
8.4.120.0080.00318.06
8.4.90.0160.00517.57
8.3.260.0040.00516.54
8.3.250.0150.00516.48
8.3.180.0100.00916.75
8.3.50.0100.00916.81

preferences:
25.06 ms | 403 KiB | 5 Q