3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = new \DateTime('2016-03-01'); $date2 = new \DateTime('2016-03-31'); $diff = date_diff($date1, $date2, true); var_dump($diff); // see ["f"]=>float(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)
8.0.110.0030.00317.05
8.0.100.0040.00416.94
8.0.90.0040.00416.93
8.0.80.0100.00717.03
8.0.70.0000.00717.06
8.0.60.0030.00617.06
8.0.50.0000.00717.14
8.0.30.0070.01017.08
8.0.20.0110.01017.40
8.0.10.0000.00717.13
8.0.00.0090.01517.05
7.4.240.0000.00716.69
7.4.230.0030.00316.60
7.4.220.0160.01016.65
7.4.210.0120.00916.61
7.4.200.0040.00416.60
7.4.160.0080.00816.66
7.4.150.0140.00717.40
7.4.140.0090.01117.86
7.4.130.0110.00916.55
7.4.120.0090.01116.66
7.4.110.0030.01416.64
7.4.100.0090.01016.74
7.4.90.0120.00916.51
7.4.80.0000.01719.39
7.4.70.0060.01116.55
7.4.60.0120.00316.61
7.4.50.0030.01016.46
7.4.40.0130.00416.49
7.4.30.0080.01016.64
7.4.10.0060.01216.15
7.4.00.0090.00615.46
7.3.300.0060.00016.32
7.3.290.0050.01116.29
7.3.280.0130.00716.24
7.3.270.0150.00317.40
7.3.260.0150.00416.32
7.3.250.0080.00916.56
7.3.240.0130.00916.37
7.3.230.0060.01216.40
7.3.210.0030.01416.48
7.3.200.0100.00716.32
7.3.190.0050.01116.29
7.3.180.0100.00616.64
7.3.170.0090.01416.46
7.3.160.0060.01216.62
7.3.130.0040.01516.22
7.3.120.0060.01215.36
7.3.110.0120.00515.33
7.3.100.0060.01015.38
7.3.90.0070.00815.35
7.3.80.0080.00315.49
7.3.70.0070.00515.35
7.3.60.0060.00715.38
7.3.50.0010.01215.25
7.3.40.0100.00315.18
7.3.30.0070.00715.32
7.3.20.0050.01017.12
7.3.10.0080.00416.99
7.3.00.0030.01017.11
7.2.330.0150.00316.62
7.2.320.0110.00816.79
7.2.310.0180.00016.60
7.2.300.0150.00616.63
7.2.290.0150.00516.79
7.2.260.0070.01416.71
7.2.250.0050.01415.34
7.2.240.0090.01115.43
7.2.230.0040.01215.49
7.2.220.0090.00815.58
7.2.210.0040.01015.44
7.2.200.0050.01015.64
7.2.190.0090.00415.52
7.2.180.0040.01015.47
7.2.170.0100.00415.45
7.2.160.0040.01116.28
7.2.150.0060.00618.46
7.2.140.0040.00818.36
7.2.130.0000.01518.46
7.2.120.0060.00918.30
7.2.110.0000.01418.47
7.2.100.0040.00718.36
7.2.90.0030.01218.38
7.2.80.0040.01518.43
7.2.70.0070.01018.17
7.2.60.0030.01217.81
7.2.50.0080.00517.66
7.2.40.0040.00718.50
7.2.30.0000.01518.29
7.2.20.0040.01118.44
7.2.10.0040.01118.34
7.2.00.0030.00718.39
7.1.330.0060.00816.26
7.1.320.0040.01116.39
7.1.310.0070.00716.42
7.1.300.0040.00816.23
7.1.290.0080.00616.43
7.1.280.0050.00916.46
7.1.270.0070.00716.38
7.1.260.0040.00616.39
7.1.250.0070.00717.38
7.1.240.0040.01217.37
7.1.230.0040.01117.33
7.1.220.0080.00417.40
7.1.210.0060.00917.22
7.1.200.0110.00516.65
7.1.190.0090.00317.47
7.1.180.0090.00617.26
7.1.170.0030.01217.28
7.1.160.0030.00617.34
7.1.150.0000.01517.37
7.1.140.0030.01417.22
7.1.130.0060.00317.33
7.1.120.0070.00417.39
7.1.110.0000.01217.24
7.1.100.0070.00417.41
7.1.90.0030.00917.56
7.1.80.0090.00617.37
7.1.70.0050.00417.23
7.1.60.0060.00817.33
7.1.50.0070.00717.28
7.1.40.0070.00717.49
7.1.30.0130.00017.59
7.1.20.0130.00017.34
7.1.10.0030.00617.60
7.1.00.0150.03418.90
7.0.330.0030.00917.10
7.0.320.0030.00617.16
7.0.310.0090.00316.95
7.0.300.0090.00317.03
7.0.290.0040.00416.75
7.0.280.0000.00917.00
7.0.270.0040.00417.13
7.0.260.0080.00317.15
7.0.250.0060.00317.05
7.0.240.0030.00917.11
7.0.230.0030.00617.16
7.0.220.0070.00317.14
7.0.210.0100.00317.09
7.0.200.0090.00716.70
7.0.190.0040.00417.09
7.0.180.0040.00917.16
7.0.170.0130.00317.12
7.0.160.0050.00817.17
7.0.150.0030.01016.99
7.0.140.0050.00516.93
7.0.130.0200.03918.72
7.0.120.0220.03918.76
7.0.110.0480.04318.62
7.0.100.0270.03518.61
7.0.90.0220.04218.69
7.0.80.0180.04218.68
7.0.70.0180.03518.67
7.0.60.0160.03518.57
7.0.50.0120.04918.74
7.0.40.0160.03317.62
7.0.30.0230.04017.62
7.0.20.0240.03617.51
7.0.10.0190.03717.65
7.0.00.0220.03717.59
5.6.400.0090.00615.95
5.6.390.0090.00616.03
5.6.380.0000.01415.84
5.6.370.0060.00615.80
5.6.360.0040.01115.95
5.6.350.0070.00715.91
5.6.340.0070.00715.83
5.6.330.0030.00715.78
5.6.320.0060.00315.96
5.6.310.0090.00015.84
5.6.300.0030.01315.86
5.6.290.0070.00715.96
5.6.280.0080.03918.61
5.6.270.0070.04718.42
5.6.260.0160.03518.44
5.6.250.0150.03218.49
5.6.240.0070.04518.41
5.6.230.0230.03018.55
5.6.220.0130.03718.28
5.6.210.0080.04718.38
5.6.200.0150.03018.36
5.6.190.0100.03318.51
5.6.180.0080.04718.43
5.6.170.0170.03318.50
5.6.160.0110.04118.60
5.6.150.0070.03218.33
5.6.140.0080.04518.45
5.6.130.0100.03218.25
5.6.120.0040.04418.51
5.6.110.0070.04018.40
5.6.100.0070.03518.32
5.6.90.0050.03818.55
5.6.80.0130.04018.14
5.6.70.0090.04418.09
5.6.60.0110.04117.98
5.6.50.0070.04517.99
5.6.40.0020.03917.98
5.6.30.0070.04617.95
5.6.20.0100.04518.03
5.6.10.0030.04718.10
5.6.00.0080.03518.15

preferences:
26.06 ms | 403 KiB | 5 Q