3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $year = (new DateTime)->setTimestamp(-9223372036854775808)->format('Y'); echo number_format($year, 0, '.', ',');

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)
7.0.00.0070.03720.06
5.6.160.0030.04020.54
5.6.150.0030.09018.16
5.6.140.0100.04018.16
5.6.130.0200.07018.17
5.6.120.0070.07021.11
5.6.110.0100.04021.02
5.6.100.0070.08320.97
5.6.90.0100.04321.02
5.6.80.0070.06020.37
5.5.300.0070.04017.98
5.5.290.0100.05717.94
5.5.280.0230.03720.87
5.5.270.0070.07720.89
5.5.260.0070.08720.75
5.5.250.0030.08720.57
5.5.240.3600.04320.01

preferences:
143.35 ms | 1394 KiB | 7 Q