3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); $may = new DateTime('2015-05-18'); $diff = $now->diff($may); var_dump($diff);

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.0.110.0040.00416.86
8.0.100.0030.00516.84
8.0.90.0000.00716.86
8.0.80.0070.00717.00
8.0.70.0000.00816.82
8.0.60.0040.00417.07
8.0.50.0050.00317.02
8.0.30.0120.00917.14
8.0.20.0120.00917.40
8.0.10.0000.00717.02
8.0.00.0100.01016.88
7.4.240.0000.00816.62
7.4.230.0080.00016.69
7.4.220.0130.00716.65
7.4.210.0100.01016.59
7.4.200.0000.00716.77
7.4.160.0060.01016.39
7.4.150.0100.01017.40
7.4.140.0060.01317.86
7.4.130.0110.00916.47
7.4.120.0070.01116.58
7.4.110.0170.00716.71
7.4.100.0120.00616.63
7.4.90.0060.01216.73
7.4.80.0060.01819.39
7.4.70.0110.01116.63
7.4.60.0040.01116.49
7.4.50.0100.00516.43
7.4.40.0120.01216.54
7.4.30.0110.00916.40
7.4.00.0000.01614.95
7.3.300.0030.00316.25
7.3.290.0080.00716.23
7.3.280.0100.00716.29
7.3.270.0100.00717.40
7.3.260.0180.00616.43
7.3.250.0080.01016.51
7.3.240.0090.01116.34
7.3.230.0040.01516.61
7.3.210.0120.00616.44
7.3.200.0100.00716.38
7.3.190.0150.01216.43
7.3.180.0100.01016.21
7.3.170.0070.01016.36
7.3.160.0130.00416.37
7.3.10.0000.01516.31
7.3.00.0050.00316.71
7.2.330.0100.02316.84
7.2.320.0040.01616.83
7.2.310.0070.01016.42
7.2.300.0070.01016.63
7.2.290.0040.01416.74
7.2.130.0070.00717.14
7.2.120.0040.00816.59
7.2.110.0000.01316.83
7.2.100.0030.00816.64
7.2.90.0030.00916.95
7.2.80.0040.00816.96
7.2.70.0030.00916.89
7.2.60.0050.00916.90
7.2.50.0090.00316.62
7.2.40.0060.00616.84
7.2.30.0000.01416.94
7.2.20.0070.00716.86
7.2.10.0030.00916.95
7.2.00.0020.01018.11
7.1.250.0040.00715.64
7.1.200.0140.00315.66
7.1.100.0440.01716.44
7.1.70.0000.00817.07
7.1.60.0070.01019.36
7.1.50.0060.00617.05
7.1.00.0030.07722.31
7.0.200.0030.00716.67
7.0.60.0170.07719.90
7.0.50.0130.06017.89
7.0.40.0030.06020.40
7.0.30.0270.08020.21
7.0.20.0300.07320.09
7.0.10.0100.09020.34
7.0.00.0000.05320.17
5.6.280.0030.05721.16
5.6.210.0070.03720.66
5.6.200.0100.07318.18
5.6.190.0030.08020.40
5.6.180.0270.04020.56
5.6.170.0300.04320.50
5.6.160.0100.06720.70
5.6.150.0030.04718.18
5.6.140.0100.06718.21
5.6.130.0070.04318.16
5.6.120.0070.04321.12
5.6.110.0170.07020.98
5.6.100.0070.07021.03
5.6.90.0130.03321.01
5.6.80.0070.03720.37
5.5.350.0170.03320.46
5.5.340.0030.04017.92
5.5.330.0070.04720.07
5.5.320.0400.07720.13
5.5.310.0270.07320.26
5.5.300.0030.04017.88
5.5.290.0070.05017.94
5.5.280.0130.06720.73
5.5.270.0030.05720.67
5.5.260.0130.07720.97
5.5.250.0100.08020.48
5.5.240.0370.06720.04

preferences:
31.27 ms | 400 KiB | 5 Q