3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new \Datetime('2017-6-1'); $d2 = new \Datetime('2017-8-1'); $diff = $d1->diff($d2); echo sprintf('%d Months', $diff->m) . PHP_EOL; echo sprintf('and %d Days', $diff->d) . 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.20.0100.01019.68
8.4.10.0150.00419.57
8.3.150.0130.00618.62
8.3.140.0050.00316.66
8.3.130.0080.00018.13
8.3.120.0100.00020.73
8.3.110.0060.00316.96
8.3.100.0110.00018.65
8.3.90.0040.00426.77
8.3.80.0060.00316.63
8.3.70.0150.00316.88
8.3.60.0120.00616.88
8.3.50.0080.00816.76
8.3.40.0070.01118.82
8.3.30.0080.01218.83
8.3.20.0080.00021.89
8.3.10.0040.00423.46
8.3.00.0090.00619.81
8.2.270.0070.01118.96
8.2.260.0110.00716.84
8.2.250.0060.00917.01
8.2.240.0000.01016.73
8.2.230.0040.00420.94
8.2.220.0000.01024.06
8.2.210.0040.00426.77
8.2.200.0000.00918.54
8.2.190.0110.00416.58
8.2.180.0140.00325.92
8.2.170.0070.00722.96
8.2.160.0080.00520.33
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0150.00326.16
8.2.120.0000.00719.79
8.2.110.0030.00721.05
8.2.100.0060.00617.97
8.2.90.0090.00019.23
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0040.00418.05
8.2.50.0000.00918.10
8.2.40.0040.00420.36
8.2.30.0000.00719.27
8.2.20.0000.00718.12
8.2.10.0000.00817.94
8.2.00.0000.00717.93
8.1.310.0050.00318.27
8.1.300.0000.00917.97
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0070.00020.86
8.1.260.0030.00626.35
8.1.250.0080.00828.09
8.1.240.0030.00722.59
8.1.230.0060.00617.83
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0000.00818.98
8.1.150.0000.00720.64
8.1.140.0000.00819.51
8.1.130.0030.00520.64
8.1.120.0070.00017.56
8.1.110.0040.00417.53
8.1.100.0080.00017.63
8.1.90.0000.00717.62
8.1.80.0030.00517.53
8.1.70.0000.00717.62
8.1.60.0030.00517.66
8.1.50.0040.00417.63
8.1.40.0000.00817.55
8.1.30.0080.00017.68
8.1.20.0040.00417.61
8.1.10.0030.00517.67
8.1.00.0040.00417.66
8.0.300.0060.00319.91
8.0.290.0070.00016.87
8.0.280.0040.00318.43
8.0.270.0070.00017.06
8.0.260.0000.00619.02
8.0.250.0000.00717.21
8.0.240.0070.00317.09
8.0.230.0000.00717.11
8.0.220.0040.00416.92
8.0.210.0040.00417.10
8.0.200.0000.00717.04
8.0.190.0000.00817.11
8.0.180.0050.00216.94
8.0.170.0030.00517.02
8.0.160.0060.00317.08
8.0.150.0000.00717.02
8.0.140.0000.00817.00
8.0.130.0000.00613.43
8.0.120.0070.00017.09
8.0.110.0000.00717.19
8.0.100.0050.00317.03
8.0.90.0070.00016.96
8.0.80.0110.00417.11
8.0.70.0040.00417.12
8.0.60.0040.00417.03
8.0.50.0040.00416.98
8.0.30.0090.00917.15
8.0.20.0120.00917.42
8.0.10.0040.00417.18
8.0.00.0170.00016.75
7.4.330.0000.00515.55
7.4.320.0030.00316.49
7.4.300.0030.00316.53
7.4.290.0030.00316.56
7.4.280.0000.00716.71
7.4.270.0030.00316.52
7.4.260.0070.00316.55
7.4.250.0000.00716.56
7.4.240.0070.00016.64
7.4.230.0040.00416.57
7.4.220.0110.00716.55
7.4.210.0030.01116.67
7.4.200.0050.00216.46
7.4.160.0080.00816.79
7.4.150.0090.01517.40
7.4.140.0130.01017.86
7.4.130.0140.01116.46
7.4.120.0110.00616.54
7.4.110.0120.00416.57
7.4.100.0140.01016.73
7.4.90.0100.00716.72
7.4.80.0060.00919.39
7.4.70.0050.01116.66
7.4.60.0090.00616.50
7.4.50.0050.00516.70
7.4.40.0030.01316.82
7.4.30.0100.01116.55
7.4.10.0100.01016.58
7.4.00.0050.01015.74
7.3.330.0030.00313.23
7.3.320.0000.00513.08
7.3.310.0070.00016.32
7.3.300.0000.00716.36
7.3.290.0060.00816.32
7.3.280.0070.00916.33
7.3.270.0120.00617.40
7.3.260.0100.00716.56
7.3.250.0110.00616.41
7.3.240.0120.00416.46
7.3.230.0040.01216.65
7.3.210.0100.00716.35
7.3.200.0160.00316.36
7.3.190.0090.00616.29
7.3.180.0030.01616.64
7.3.170.0140.00316.58
7.3.160.0100.00716.38
7.3.130.0000.02116.34
7.3.120.0040.01116.40
7.3.110.0080.00816.37
7.3.100.0120.00616.61
7.3.90.0090.00616.41
7.3.80.0100.00316.46
7.3.70.0030.01216.53
7.3.60.0030.00616.59
7.3.50.0040.00716.58
7.3.40.0040.01116.45
7.3.30.0060.00916.42
7.3.20.0100.00718.17
7.3.10.0000.01218.02
7.3.00.0060.01218.19
7.2.330.0090.00916.56
7.2.320.0070.01016.69
7.2.310.0140.00316.67
7.2.300.0120.00616.91
7.2.290.0040.01316.63
7.2.260.0100.01016.91
7.2.250.0030.01616.88
7.2.240.0070.01116.98
7.2.230.0070.01016.40
7.2.220.0030.01516.62
7.2.210.0060.00616.75
7.2.200.0060.00916.63
7.2.190.0060.00916.57
7.2.180.0070.01016.79
7.2.170.0070.00716.54
7.2.160.0140.00416.45
7.2.150.0140.00018.44
7.2.140.0070.00718.55
7.2.130.0110.00718.41
7.2.120.0030.01018.50
7.2.110.0120.00418.44
7.2.100.0030.00718.52
7.2.90.0030.01418.37
7.2.80.0110.00418.42
7.2.70.0130.00318.39
7.2.60.0060.00917.61
7.2.50.0100.00717.83
7.2.40.0110.00718.54
7.2.30.0100.00318.35
7.2.20.0070.00718.59
7.2.10.0060.01218.41
7.2.00.0090.00918.43
7.1.330.0090.00617.46
7.1.320.0050.00517.43
7.1.310.0040.01417.54
7.1.300.0030.01017.36
7.1.290.0070.00717.39
7.1.280.0040.01217.41
7.1.270.0060.01017.58
7.1.260.0100.00617.40
7.1.250.0090.00917.54
7.1.240.0090.00917.46
7.1.230.0040.01117.47
7.1.220.0000.00917.42
7.1.210.0040.01117.23
7.1.200.0060.00816.75
7.1.190.0100.00317.21
7.1.180.0090.00917.40
7.1.170.0070.00717.52
7.1.160.0070.00717.45
7.1.150.0080.00617.23
7.1.140.0060.00617.44
7.1.130.0060.00917.61
7.1.120.0080.00517.39
7.1.110.0110.00017.41
7.1.100.0030.01017.35
7.1.90.0070.00317.49
7.1.80.0070.00717.46
7.1.70.0030.01017.44
7.1.60.0120.01025.48
7.1.50.0850.00925.30
7.1.40.0830.01325.07
7.1.30.1350.01025.18
7.1.20.1050.01525.21
7.1.10.0470.00716.13
7.1.00.0500.01216.34
7.0.330.0120.00617.15
7.0.320.0090.00617.04
7.0.310.0030.01317.07
7.0.300.0040.01117.25
7.0.290.0030.01217.11
7.0.280.0060.00617.23
7.0.270.0090.00617.04
7.0.260.0030.01017.35
7.0.250.0090.00617.22
7.0.240.0030.00617.16
7.0.230.0060.00317.20
7.0.220.0110.00017.11
7.0.210.0100.00317.16
7.0.200.0670.00916.04
7.0.190.0820.00815.96
7.0.180.1150.01015.77
7.0.170.0970.00815.85
7.0.160.1380.00715.80
7.0.150.0550.01215.83
7.0.140.0570.01116.00
7.0.130.0530.00915.92
7.0.120.0450.01115.99
7.0.110.0420.00715.81
7.0.100.0430.00715.97
7.0.90.0440.01215.91
7.0.80.0490.00715.95
7.0.70.0470.01415.85
7.0.60.0510.01115.79
7.0.50.0450.01015.85
7.0.40.0470.01014.93
7.0.30.0500.01114.81
7.0.20.0450.01014.96
7.0.10.0540.00814.83
7.0.00.0360.01014.86
5.6.400.0090.00915.93
5.6.390.0030.01515.88
5.6.380.0140.00515.94
5.6.370.0060.00615.88
5.6.360.0070.01016.09
5.6.350.0130.00015.76
5.6.340.0070.00316.01
5.6.330.0030.00915.68
5.6.320.0030.01016.00
5.6.310.0030.00715.98
5.6.300.0080.00816.10
5.6.290.0060.00615.92
5.6.280.0040.01116.07
5.6.270.0050.00516.01
5.6.260.0070.01016.13
5.6.250.0070.01116.04
5.6.240.0060.00915.89
5.6.230.0030.01016.14
5.6.220.0070.00715.97
5.6.210.0090.00915.86
5.6.200.0080.00816.07
5.6.190.0030.00715.77
5.6.180.0120.00015.93
5.6.170.0040.01115.95
5.6.160.0030.00716.08
5.6.150.0060.00616.14
5.6.140.0040.00815.81
5.6.130.0040.00715.94
5.6.120.0160.00015.71
5.6.110.0030.00616.00
5.6.100.0070.01116.11
5.6.90.0000.01415.70
5.6.80.0060.00615.75
5.6.70.0000.00915.84
5.6.60.0080.00315.75
5.6.50.0070.00715.91
5.6.40.0040.01115.76
5.6.30.0030.01015.93
5.6.20.0040.00815.97
5.6.10.0080.00515.87
5.6.00.0030.01315.91

preferences:
30.33 ms | 403 KiB | 5 Q