3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace igorw; class FailingTooHardException extends \Exception {} function retry($retries, callable $fn) { while (true) { try { return $fn(); } catch (\Exception $e) { if (!$retries) { throw new FailingTooHardException('', 0, $e); } $retries--; } } }

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.0110.00418.31
8.3.50.0100.00719.61
8.3.40.0090.00918.59
8.3.30.0090.00618.89
8.3.20.0040.00420.20
8.3.10.0030.00620.31
8.3.00.0080.00019.26
8.2.180.0130.00716.75
8.2.170.0170.00322.96
8.2.160.0080.01120.35
8.2.150.0050.00524.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00521.09
8.2.110.0060.00320.57
8.2.100.0120.00018.09
8.2.90.0000.00818.95
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0080.00017.68
8.2.50.0040.00418.07
8.2.40.0060.00318.09
8.2.30.0000.00719.50
8.2.20.0080.00017.66
8.2.10.0050.00218.01
8.2.00.0040.00417.42
8.1.270.0090.00022.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00823.92
8.1.230.0080.00319.20
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0080.00017.00
8.1.180.0030.00618.10
8.1.170.0030.00918.51
8.1.160.0020.00521.88
8.1.150.0080.00018.70
8.1.140.0000.00717.27
8.1.130.0040.00417.82
8.1.120.0040.00417.21
8.1.110.0080.00017.30
8.1.100.0000.00717.25
8.1.90.0000.00717.24
8.1.80.0020.00517.38
8.1.70.0070.00017.35
8.1.60.0040.00417.52
8.1.50.0000.00717.45
8.1.40.0020.00517.39
8.1.30.0050.00317.36
8.1.20.0040.00417.56
8.1.10.0040.00417.38
8.1.00.0080.00017.19
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.24
8.0.270.0000.00716.62
8.0.260.0030.00317.13
8.0.250.0040.00216.84
8.0.240.0040.00416.73
8.0.230.0030.00316.71
8.0.220.0030.00316.76
8.0.210.0000.00716.77
8.0.200.0070.00016.73
8.0.190.0040.00416.83
8.0.180.0040.00416.81
8.0.170.0000.00816.79
8.0.160.0070.00016.82
8.0.150.0000.00716.66
8.0.140.0050.00316.74
8.0.130.0050.00013.25
8.0.120.0000.01016.72
8.0.110.0040.00416.67
8.0.100.0000.00716.60
8.0.90.0080.00016.67
8.0.80.0060.01016.82
8.0.70.0040.00416.57
8.0.60.0000.00716.62
8.0.50.0070.00016.77
8.0.30.0090.01216.90
8.0.20.0100.00817.40
8.0.10.0000.00716.93
8.0.00.0130.00716.71
7.4.330.0050.00015.00
7.4.320.0000.00816.52
7.4.300.0000.00616.38
7.4.290.0040.00416.57
7.4.280.0040.00716.37
7.4.270.0000.00616.29
7.4.260.0040.00316.27
7.4.250.0000.00716.37
7.4.240.0060.00116.48
7.4.230.0030.00316.50
7.4.220.0130.00716.25
7.4.210.0090.00616.46
7.4.200.0050.00216.41
7.4.160.0130.01016.48
7.4.150.0140.00717.40
7.4.140.0110.00717.86
7.4.130.0100.00816.36
7.4.120.0090.01116.38
7.4.110.0130.00316.16
7.4.100.0120.00616.41
7.4.90.0120.00616.57
7.4.80.0080.00919.39
7.4.70.0100.00616.50
7.4.60.0130.00316.46
7.4.50.0060.00016.34
7.4.40.0070.01016.23
7.4.30.0120.00316.32
7.4.00.0140.00414.88
7.3.330.0030.00313.21
7.3.320.0000.00512.91
7.3.310.0040.00416.14
7.3.300.0030.00316.10
7.3.290.0040.01116.26
7.3.280.0070.00816.18
7.3.270.0070.01017.40
7.3.260.0100.01016.21
7.3.250.0130.01016.47
7.3.240.0070.01116.31
7.3.230.0160.00016.39
7.3.210.0070.01016.49
7.3.200.0030.01316.30
7.3.190.0110.00616.17
7.3.180.0080.00816.46
7.3.170.0000.01816.27
7.3.160.0090.00616.11
7.2.330.0070.01016.50
7.2.320.0100.00616.21
7.2.310.0170.00716.57
7.2.300.0080.01116.38
7.2.290.0060.01216.46
7.1.70.0150.00317.10
7.1.60.0190.00619.61
7.1.50.0210.00316.90
7.1.00.0000.08022.45
7.0.200.0030.00616.56
7.0.140.0030.07022.11
7.0.60.0070.06720.02
7.0.50.0100.07317.86
7.0.40.0030.09020.14
7.0.30.0200.04320.09
7.0.20.0430.06720.24
7.0.10.0030.04720.20
7.0.00.0100.07320.06
5.6.280.0070.07021.05
5.6.210.0130.07720.52
5.6.200.0170.07718.19
5.6.190.0000.08720.46
5.6.180.0170.07720.68
5.6.170.0370.06720.45
5.6.160.0130.07320.63
5.6.150.0170.03318.19
5.6.140.0170.06318.33
5.6.130.0000.08718.20
5.6.120.0000.05320.91
5.6.110.0130.07320.89
5.6.100.0070.05021.01
5.6.90.0100.07721.11
5.6.80.0130.06320.49
5.5.350.0430.06020.36
5.5.340.0030.07718.00
5.5.330.0100.05320.31
5.5.320.0300.04720.27
5.5.310.0200.04720.30
5.5.300.0070.03718.03
5.5.290.0100.07717.95
5.5.280.0100.08020.87
5.5.270.0000.05020.80
5.5.260.0170.08020.96
5.5.250.0030.06020.70
5.5.240.0170.06320.16
5.4.450.0300.04719.48
5.4.440.0230.03319.54
5.4.430.0270.04719.43
5.4.420.0570.03319.47
5.4.410.0230.04719.34
5.4.400.0300.04318.88
5.4.390.0370.04019.13
5.4.380.0230.06018.80
5.4.370.0330.05718.71
5.4.360.0230.06018.73
5.4.350.0300.06018.48
5.4.340.0430.06318.72
5.4.320.0040.04212.51
5.4.310.0110.03812.50
5.4.300.0080.03712.51
5.4.290.0060.04712.51
5.4.280.0050.05212.40
5.4.270.0090.04912.40
5.4.260.0050.04012.40
5.4.250.0050.04012.40
5.4.240.0050.04012.40
5.4.230.0050.04012.40
5.4.220.0080.03412.39
5.4.210.0060.03612.39
5.4.200.0090.04212.39
5.4.190.0080.04712.39
5.4.180.0140.04412.39
5.4.170.0140.03212.40
5.4.160.0100.03512.39
5.4.150.0060.04312.39
5.4.140.0060.03812.07
5.4.130.0090.03312.06
5.4.120.0070.03412.02
5.4.110.0090.03712.02
5.4.100.0080.03612.02
5.4.90.0060.03712.02
5.4.80.0100.03812.02
5.4.70.0070.04012.01
5.4.60.0080.03412.01
5.4.50.0040.03812.02
5.4.40.0120.02912.00
5.4.30.0060.03612.00
5.4.20.0070.03312.00
5.4.10.0070.03512.00
5.4.00.0070.03711.48
5.3.290.0060.04212.80
5.3.280.0090.03512.71
5.3.270.0050.04012.72
5.3.260.0070.03812.72
5.3.250.0040.04912.72
5.3.240.0090.04112.72
5.3.230.0110.03712.71
5.3.220.0060.05212.68
5.3.210.0080.03712.68
5.3.200.0070.03712.68
5.3.190.0040.03912.68
5.3.180.0040.03812.68
5.3.170.0080.03512.67
5.3.160.0070.03512.67
5.3.150.0090.03412.67
5.3.140.0040.03912.66
5.3.130.0070.03812.66
5.3.120.0070.03812.65
5.3.110.0070.03812.66
5.3.100.0040.03912.13
5.3.90.0060.03612.12
5.3.80.0090.03412.11
5.3.70.0070.03712.11
5.3.60.0060.03612.09
5.3.50.0040.03812.04
5.3.40.0040.03812.04
5.3.30.0060.03812.00
5.3.20.0050.03611.78
5.3.10.0060.03511.75
5.3.00.0040.03811.73
5.2.170.0090.0259.18
5.2.160.0050.0309.18
5.2.150.0060.0319.18
5.2.140.0060.0319.18
5.2.130.0040.0319.14
5.2.120.0050.0289.14
5.2.110.0060.0299.14
5.2.100.0060.0299.14
5.2.90.0040.0309.14
5.2.80.0050.0299.14
5.2.70.0030.0329.14
5.2.60.0000.0349.09
5.2.50.0050.0339.06
5.2.40.0070.0339.04
5.2.30.0040.0319.01
5.2.20.0040.0299.00
5.2.10.0060.0288.92
5.2.00.0030.0318.79
5.1.60.0040.0258.06
5.1.50.0040.0258.06
5.1.40.0050.0258.05
5.1.30.0070.0248.40
5.1.20.0060.0288.41
5.1.10.0060.0248.14
5.1.00.0060.0328.14
5.0.50.0040.0216.62
5.0.40.0030.0246.48
5.0.30.0030.0316.29
5.0.20.0040.0196.27
5.0.10.0040.0196.24
5.0.00.0020.0326.23
4.4.90.0000.0194.78
4.4.80.0040.0134.76
4.4.70.0020.0214.75
4.4.60.0010.0174.75
4.4.50.0020.0174.77
4.4.40.0020.0264.71
4.4.30.0030.0164.76
4.4.20.0020.0194.84
4.4.10.0040.0164.84
4.4.00.0040.0244.75
4.3.110.0020.0174.67
4.3.100.0020.0164.67
4.3.90.0010.0184.63
4.3.80.0020.0274.58
4.3.70.0040.0194.63
4.3.60.0040.0204.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0010.0173.29
4.3.20.0020.0163.26
4.3.10.0010.0173.22
4.3.00.0070.01718.16

preferences:
63.72 ms | 400 KiB | 5 Q