3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(null, new DateTimeZone('Europe/Berlin')); $soon = new DateTime(null, new DateTimeZone('Europe/Berlin')); $soon->add(new DateInterval('P7Y5M4DT4H3M2S')); $diff = $soon->diff($now); echo $diff->format('%R%a');

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.3.60.0070.00716.63
8.3.50.0120.01022.11
8.3.40.0110.00418.91
8.3.30.0120.00319.09
8.3.20.0110.00420.14
8.3.10.0040.00421.76
8.3.00.0080.00019.56
8.2.180.0110.00716.86
8.2.170.0100.00322.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00821.02
8.2.110.0060.00319.27
8.2.100.0120.00018.03
8.2.90.0080.00019.08
8.2.80.0030.00617.97
8.2.70.0060.00317.88
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0030.00618.28
8.2.30.0000.00718.03
8.2.20.0070.00017.88
8.2.10.0040.00418.09
8.2.00.0060.00317.93
8.1.280.0210.00425.92
8.1.270.0090.00024.02
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00321.27
8.1.230.0070.00418.96
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00917.13
8.1.180.0080.00018.10
8.1.170.0000.00818.63
8.1.160.0040.00422.00
8.1.150.0040.00418.79
8.1.140.0070.00017.46
8.1.130.0040.00417.93
8.1.120.0000.00717.52
8.1.110.0040.00417.48
8.1.100.0020.00517.62
8.1.90.0000.00717.44
8.1.80.0030.00617.44
8.1.70.0000.00717.54
8.1.60.0030.00717.59
8.1.50.0050.00317.46
8.1.40.0060.00317.63
8.1.30.0030.00517.73
8.1.20.0000.00717.61
8.1.10.0050.00317.71
8.1.00.0050.00217.62
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0080.00018.56
8.0.270.0040.00417.25
8.0.260.0030.00317.39
8.0.250.0000.00717.13
8.0.240.0000.00717.18
8.0.230.0030.00317.13
8.0.220.0000.00717.04
8.0.210.0030.00316.99
8.0.200.0000.00617.11
8.0.190.0000.00717.07
8.0.180.0000.00716.94
8.0.170.0000.00817.09
8.0.160.0040.00417.08
8.0.150.0000.00816.97
8.0.140.0000.00716.99
8.0.130.0030.00313.50
8.0.120.0000.00817.09
8.0.110.0030.00517.08
8.0.100.0030.00516.88
8.0.90.0050.00216.92
8.0.80.0100.01017.01
8.0.70.0000.00816.88
8.0.60.0040.00416.85
8.0.50.0030.00517.02
8.0.30.0100.01117.32
8.0.20.0070.01117.48
8.0.10.0040.00417.16
8.0.00.0080.00817.03
7.4.330.0030.00315.02
7.4.320.0030.00316.71
7.4.300.0030.00316.48
7.4.290.0030.00316.68
7.4.280.0050.00316.55
7.4.270.0040.00416.70
7.4.260.0070.00016.55
7.4.250.0050.00216.55
7.4.240.0000.00716.69
7.4.230.0070.00016.76
7.4.220.0150.00716.71
7.4.210.0090.00616.61
7.4.200.0030.00316.38
7.4.160.0190.00016.67
7.4.150.0040.01517.40
7.4.140.0180.01317.86
7.4.130.0120.00516.57
7.4.120.0100.00716.73
7.4.110.0080.00816.69
7.4.100.0080.00816.61
7.4.90.0110.01116.50
7.4.80.0090.00919.39
7.4.70.0070.01416.57
7.4.60.0070.01016.76
7.4.50.0060.00316.48
7.4.40.0070.01116.45
7.4.30.0050.01016.64
7.4.00.0080.00815.10
7.3.330.0000.00513.26
7.3.320.0030.00313.12
7.3.310.0000.00716.21
7.3.300.0000.00716.30
7.3.290.0110.00416.30
7.3.280.0110.01016.30
7.3.270.0100.00717.40
7.3.260.0150.00316.18
7.3.250.0080.00816.42
7.3.240.0130.01016.45
7.3.230.0100.00816.39
7.3.210.0100.01016.46
7.3.200.0090.00919.39
7.3.190.0120.00916.51
7.3.180.0140.00316.49
7.3.170.0080.00816.53
7.3.160.0160.00016.32
7.3.120.0060.00814.88
7.3.110.0030.01315.03
7.3.100.0130.00014.70
7.3.90.0080.00814.96
7.3.80.0060.00615.01
7.3.70.0110.00314.96
7.3.60.0100.00314.70
7.3.50.0060.00314.99
7.3.40.0060.00914.94
7.3.30.0000.00914.93
7.3.20.0040.01216.63
7.3.10.0080.00816.83
7.3.00.0070.00716.71
7.2.330.0030.02016.59
7.2.320.0170.00616.94
7.2.310.0090.00916.62
7.2.300.0130.00316.59
7.2.290.0090.00616.95
7.2.250.0150.00415.48
7.2.240.0150.00415.11
7.2.230.0030.01515.43
7.2.220.0070.00715.05
7.2.210.0070.00714.95
7.2.200.0040.00714.79
7.2.190.0070.00715.15
7.2.180.0030.00914.80
7.2.170.0060.01215.37
7.2.60.0030.01017.16
7.2.00.0060.00619.73
7.1.330.0000.01515.80
7.1.320.0120.00315.77
7.1.310.0080.00815.72
7.1.300.0070.00715.77
7.1.290.0060.00615.72
7.1.280.0030.01015.67
7.1.270.0070.00315.67
7.1.260.0060.00915.89
7.1.200.0080.00615.96
7.1.100.0110.00618.32
7.1.70.0030.00517.25
7.1.60.0030.01719.14
7.1.50.0090.01316.92
7.1.00.0070.07322.37
7.0.200.0050.00516.84
7.0.140.0100.06721.95
7.0.60.0170.06019.97
7.0.50.0000.06017.93
7.0.40.0070.05720.05
7.0.30.0430.04720.18
7.0.20.0200.07020.09
7.0.10.0100.05320.09
7.0.00.0070.07320.19
5.6.280.0030.07321.04
5.6.210.0070.08020.44
5.6.200.0230.07018.21
5.6.190.0030.09020.41
5.6.180.2870.03720.67
5.6.170.0300.08320.52
5.6.160.0070.06320.49
5.6.150.0100.04718.11
5.6.140.0070.06318.10
5.6.130.0030.04318.21
5.6.120.0100.05720.89
5.6.110.0030.07020.93
5.6.100.0100.08021.00
5.6.90.0100.06020.96
5.6.80.0070.07720.47
5.6.70.4170.04320.38
5.5.350.0130.07720.44
5.5.340.0100.05717.95
5.5.330.0100.03720.07
5.5.320.3600.03720.31
5.5.310.0400.05720.23
5.5.300.0070.06017.98
5.5.290.0070.04017.97
5.5.280.0000.06720.79
5.5.270.0070.08320.89
5.5.260.0200.07020.84
5.5.250.0130.03320.68
5.5.240.0270.04720.11
5.4.450.0400.04719.43
5.4.440.0330.04019.26
5.4.430.0800.03719.38
5.4.420.0300.04719.39
5.4.410.0830.03319.29
5.4.400.0300.04018.78
5.4.390.0230.03718.92
5.4.380.0200.05018.62
5.4.370.0200.04718.46
5.4.360.0100.05718.49
5.4.350.0230.05018.71
5.4.340.0200.04718.67
5.4.320.0070.03712.45
5.4.310.0050.03812.45
5.4.300.0100.04612.46
5.4.290.0060.04512.45
5.4.280.0070.04412.35
5.4.270.0050.03512.35
5.4.260.0100.04912.35
5.4.250.0090.04312.35
5.4.240.0080.03712.35
5.4.230.0050.04212.34
5.4.220.0060.03512.34
5.4.210.0080.03512.34
5.4.200.0060.04912.34
5.4.190.0060.03512.34
5.4.180.0070.05012.34
5.4.170.0080.04212.35
5.4.160.0070.03812.34
5.4.150.0080.03312.34
5.4.140.0040.03712.03
5.4.130.0060.04512.02
5.4.120.0080.04611.97
5.4.110.0050.04411.97
5.4.100.0040.04911.96
5.4.90.0050.03611.96
5.4.80.0080.04511.97
5.4.70.0070.03811.96
5.4.60.0060.03811.96
5.4.50.0040.03611.96
5.4.40.0060.04211.95
5.4.30.0100.03411.95
5.4.20.0070.03311.95
5.4.10.0050.03511.95
5.4.00.0080.04511.44
5.3.290.0110.03712.80
5.3.280.0050.03812.71
5.3.270.0110.04612.72
5.3.260.0070.03712.72
5.3.250.0100.03512.72
5.3.240.0100.05012.72
5.3.230.0070.03612.71
5.3.220.0040.03712.68
5.3.210.0100.04112.68
5.3.200.0090.04212.68
5.3.190.0070.03712.68
5.3.180.0090.03712.68
5.3.170.0050.04912.67
5.3.160.0060.03712.67
5.3.150.0080.05312.67
5.3.140.0070.03812.66
5.3.130.0030.05012.66
5.3.120.0050.05012.66
5.3.110.0070.04212.66
5.3.100.0060.03512.12
5.3.90.0050.04212.08
5.3.80.0050.04012.08
5.3.70.0070.03712.08
5.3.60.0050.03512.06
5.3.50.0040.03712.00
5.3.40.0070.03412.00
5.3.30.0050.03411.95
5.3.20.0020.05411.73
5.3.10.0070.04311.69
5.3.00.0010.04711.68
5.2.170.0030.0319.19
5.2.160.0070.0269.19
5.2.150.0070.0289.18
5.2.140.0050.0309.18
5.2.130.0070.0279.14
5.2.120.0070.0269.14
5.2.110.0040.0299.14
5.2.100.0060.0279.15
5.2.90.0050.0329.15
5.2.80.0030.0319.14
5.2.70.0080.0409.14
5.2.60.0050.0349.09
5.2.50.0030.0319.07
5.2.40.0090.0339.04
5.2.30.0050.0299.02
5.2.20.0090.0339.01
5.2.10.0040.0398.93
5.2.00.0070.0268.79
5.1.60.0050.0288.07
5.1.50.0050.0418.06
5.1.40.0040.0258.05
5.1.30.0050.0248.40
5.1.20.0060.0338.42
5.1.10.0070.0278.14
5.1.00.0060.0238.14
5.0.50.0040.0206.62
5.0.40.0030.0196.48
5.0.30.0010.0326.29
5.0.20.0050.0176.27
5.0.10.0010.0216.24
5.0.00.0030.0306.23
4.4.90.0000.0174.78
4.4.80.0020.0154.75
4.4.70.0020.0164.75
4.4.60.0050.0174.76
4.4.50.0070.0214.77
4.4.40.0030.0304.71
4.4.30.0040.0204.76
4.4.20.0000.0184.84
4.4.10.0020.0174.85
4.4.00.0010.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0184.66
4.3.90.0010.0154.64
4.3.80.0030.0334.59
4.3.70.0040.0214.63
4.3.60.0020.0214.63
4.3.50.0030.0264.63
4.3.40.0030.0304.54
4.3.30.0000.0183.28
4.3.20.0010.0183.26
4.3.10.0020.0213.22
4.3.00.0100.01712.97

preferences:
47.52 ms | 401 KiB | 5 Q