3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTime(date('Y-m-d 23:59:59', mktime(0, 0, 0, 0, 0, 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.20.0330.07720.02
7.0.10.0000.04720.24
7.0.00.0070.09020.08
5.6.170.0300.08020.71
5.6.160.0070.07720.45
5.6.150.0100.07718.19
5.6.140.0030.05318.20
5.6.130.0130.07318.14
5.6.120.0000.04321.05
5.6.110.0100.05321.13
5.6.100.0000.04321.09
5.6.90.0100.05321.00
5.6.80.0030.04020.53
5.5.310.0300.07020.37
5.5.300.0030.04018.05
5.5.290.0100.04318.06
5.5.280.0000.06320.64
5.5.270.0030.04720.96
5.5.260.0030.06020.96
5.5.250.0070.08320.66
5.5.240.0130.03320.04

preferences:
138.71 ms | 1394 KiB | 7 Q