3v4l.org

run code in 300+ PHP versions simultaneously
<?php function retry($retries) { beginning: try { return $fn(); } catch (\Exception $e) { if (!$retries) { throw new FailingTooHardException('', 0, $e); } $retries--; goto beginning; } } retry(5);

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.70.0100.01016.63
8.3.60.0150.00018.43
8.3.50.0110.00822.00
8.3.40.0000.01418.83
8.3.30.0140.00319.17
8.3.20.0090.00020.34
8.3.10.0070.01120.52
8.3.00.0100.00719.45
8.2.180.0070.00716.50
8.2.170.0000.01422.96
8.2.160.0070.00718.98
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0100.00326.16
8.2.120.0040.00422.23
8.2.110.0060.00319.45
8.2.100.0040.00817.78
8.2.90.0040.00418.09
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0100.00017.80
8.2.50.0030.00618.07
8.2.40.0050.00318.04
8.2.30.0040.00419.33
8.2.20.0040.00417.61
8.2.10.0000.00718.04
8.2.00.0000.00817.59
8.1.280.0110.01125.92
8.1.270.0080.00021.81
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00322.43
8.1.230.0080.00420.92
8.1.220.0000.00917.74
8.1.210.0050.00318.83
8.1.200.0030.00617.35
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0070.00718.30
8.1.160.0040.00421.85
8.1.150.0070.00018.81
8.1.140.0110.00017.30
8.1.130.0000.00717.71
8.1.120.0050.00317.30
8.1.110.0030.00517.38
8.1.100.0040.00317.30
8.1.90.0030.00317.29
8.1.80.0000.00717.25
8.1.70.0000.00717.34
8.1.60.0060.00317.60
8.1.50.0080.00017.52
8.1.40.0040.00417.42
8.1.30.0050.00317.53
8.1.20.0040.00417.48
8.1.10.0040.00417.59
8.1.00.0030.00617.50
8.0.300.0000.00819.90
8.0.290.0070.00016.75
8.0.280.0000.00718.38
8.0.270.0050.00217.10
8.0.260.0000.00617.20
8.0.250.0030.00516.96
8.0.240.0040.00416.97
8.0.230.0030.00316.95
8.0.220.0030.00316.93
8.0.210.0030.00316.89
8.0.200.0030.00316.96
8.0.190.0030.00816.95
8.0.180.0040.00416.96
8.0.170.0000.00816.88
8.0.160.0000.00816.77
8.0.150.0070.00016.87
8.0.140.0000.00816.73
8.0.130.0000.00613.29
8.0.120.0030.00516.86
8.0.110.0030.00516.97
8.0.100.0040.00416.73
8.0.90.0000.00716.95
8.0.80.0060.01216.77
8.0.70.0000.00716.84
8.0.60.0080.00016.90
8.0.50.0040.00416.77
8.0.30.0080.01017.14
8.0.20.0090.00917.40
8.0.10.0000.00716.95
8.0.00.0050.01216.92
7.4.330.0040.00015.00
7.4.320.0000.00716.44
7.4.300.0000.00616.52
7.4.290.0030.00316.62
7.4.280.0000.00716.55
7.4.270.0030.00316.51
7.4.260.0030.00516.56
7.4.250.0040.00416.46
7.4.240.0030.00316.60
7.4.230.0060.00016.59
7.4.220.0120.01216.54
7.4.210.0100.01016.70
7.4.200.0070.00016.70
7.4.160.0000.01816.44
7.4.150.0150.00417.40
7.4.140.0160.00117.86
7.4.130.0110.01016.41
7.4.120.0090.00816.48
7.4.110.0120.00616.43
7.4.100.0130.00316.34
7.4.90.0030.01316.51
7.4.80.0100.00719.39
7.4.70.0110.00716.73
7.4.60.0040.01216.42
7.4.50.0070.00016.31
7.4.40.0090.01216.57
7.4.30.0090.00616.66
7.4.00.0130.00014.80
7.3.330.0000.00513.18
7.3.320.0000.00513.32
7.3.310.0030.00316.19
7.3.300.0060.00016.20
7.3.290.0110.00716.32
7.3.280.0070.00816.29
7.3.270.0120.01217.40
7.3.260.0070.01016.32
7.3.250.0120.00516.47
7.3.240.0030.01316.30
7.3.230.0100.00716.59
7.3.210.0060.01216.32
7.3.200.0030.01519.39
7.3.190.0130.00916.59
7.3.180.0030.01316.41
7.3.170.0000.01616.42
7.3.160.0100.00516.60
7.2.330.0060.01216.32
7.2.320.0140.00816.64
7.2.310.0070.01116.60
7.2.300.0060.01116.52
7.2.290.0030.01716.26
7.2.60.0030.01016.67
7.2.00.0160.00019.61
7.1.200.0120.00615.28
7.1.100.0000.01217.86
7.1.70.0040.00416.95
7.1.60.0090.01619.61
7.1.50.0110.01416.96
7.1.00.0030.07322.28
7.0.200.0600.00714.63
7.0.140.0100.06721.95
7.0.60.0030.08319.91
7.0.50.0100.05017.95
7.0.40.0070.08320.23
7.0.30.0370.05320.07
7.0.20.0330.07020.24
7.0.10.0270.04320.17
7.0.00.0070.04020.34
5.6.280.0000.07721.10
5.6.210.0230.06020.71
5.6.200.0070.04318.27
5.6.190.0100.03720.61
5.6.180.0270.04020.34
5.6.170.0200.04320.51
5.6.160.0070.04020.47
5.6.150.0030.08018.27
5.6.140.0100.07018.15
5.6.130.0070.05718.16
5.6.120.0100.07020.99
5.6.110.0100.06021.04
5.6.100.0330.05320.98
5.6.90.0130.07721.11
5.6.80.0030.06020.37
5.6.70.2630.03020.33
5.5.350.0200.07320.38
5.5.340.0100.04318.00
5.5.330.0000.09720.42
5.5.320.0300.07720.27
5.5.310.0230.07720.24
5.5.300.0100.03317.95
5.5.290.0100.04318.08
5.5.280.0070.05320.77
5.5.270.0070.04320.77
5.5.260.0100.06020.77
5.5.250.0100.07320.78
5.5.240.4170.04720.27
5.4.450.3700.03719.28
5.4.440.3870.04019.45
5.4.430.3600.04019.50
5.4.420.3600.04319.25
5.4.410.3600.03319.44
5.4.400.3370.04019.25
5.4.390.3470.03019.13
5.4.380.3370.03718.96
5.4.370.3400.03319.22
5.4.360.3330.03719.14
5.4.350.3400.03319.22
5.4.340.0900.03319.22
5.4.320.3630.04319.19
5.4.310.3330.03719.04
5.4.300.3370.04019.19
5.4.290.3270.04019.24
5.4.280.3630.03719.14
5.4.270.3730.03019.21
5.4.260.3630.03719.12
5.4.250.3730.03019.18
5.4.240.3800.03718.95
5.4.230.3270.04019.09
5.4.220.2330.04019.15
5.4.210.4000.03318.93
5.4.200.4270.03319.12
5.4.190.4300.03719.21
5.4.180.4170.04019.05
5.4.170.3830.04319.23
5.4.160.3830.03719.20
5.4.150.3500.03718.95
5.4.140.3730.03316.45
5.4.130.4300.03716.37
5.4.120.4400.02716.32
5.4.110.4370.03016.48
5.4.100.3830.04016.48
5.4.90.4200.03716.22
5.4.80.4370.02716.34
5.4.70.3870.03716.50
5.4.60.3900.02716.30
5.4.50.4270.04016.50
5.4.40.4200.04316.20
5.4.30.4300.03716.53
5.4.20.4100.04316.42
5.4.10.3170.03716.45
5.4.00.3630.04015.93
5.3.290.3430.03014.66
5.3.280.0100.03314.59
5.3.270.4130.03714.64
5.3.260.3670.03314.59
5.3.250.3830.04014.65
5.3.240.3430.04014.66
5.3.230.3930.04014.62
5.3.220.4000.04014.57
5.3.210.4100.03714.72
5.3.200.4430.02714.60
5.3.190.4030.04014.71
5.3.180.4400.03714.49
5.3.170.4070.03714.61
5.3.160.4170.03714.62
5.3.150.3930.04014.61
5.3.140.3930.03714.57
5.3.130.3930.04014.70
5.3.120.4170.04014.61
5.3.110.4100.03714.54
5.3.100.3470.03713.93
5.3.90.3770.03314.18
5.3.80.3570.03014.07
5.3.70.3670.04314.06
5.3.60.3470.03314.00
5.3.50.3830.03313.91
5.3.40.3300.03714.00
5.3.30.4330.03713.95
5.3.20.3830.03713.75
5.3.10.4030.03313.57
5.3.00.4400.03313.69
5.2.170.3100.03011.09
5.2.160.3330.02311.14
5.2.150.3670.02311.10
5.2.140.4170.04011.15
5.2.130.3730.03011.11
5.2.120.3700.03011.16
5.2.110.3670.02711.13
5.2.100.3600.03311.18
5.2.90.3500.02711.27
5.2.80.3800.02311.05
5.2.70.3430.03311.24
5.2.60.3600.03010.96
5.2.50.3630.02711.04
5.2.40.2670.02710.95
5.2.30.2730.02711.02
5.2.20.3070.02711.12
5.2.10.3070.02310.93
5.2.00.3000.03010.71
5.1.60.2970.02310.00
5.1.50.2830.01710.14
5.1.40.2700.0239.97
5.1.30.3030.02710.27
5.1.20.2930.02310.42
5.1.10.3100.02310.11
5.1.00.3070.02310.20
5.0.50.1770.0208.54
5.0.40.1700.0238.39
5.0.30.1430.0238.19
5.0.20.1500.0238.21
5.0.10.1330.0178.23
5.0.00.1230.0308.12
4.4.90.1770.0106.44
4.4.80.1400.0106.44
4.4.70.1630.0176.44
4.4.60.1400.0136.44
4.4.50.1600.0136.44
4.4.40.1430.0236.44
4.4.30.1700.0176.44
4.4.20.1600.0136.44
4.4.10.1370.0176.44
4.4.00.1330.0276.44
4.3.110.1530.0176.44
4.3.100.1500.0176.44
4.3.90.1400.0136.44
4.3.80.1030.0276.44
4.3.70.1130.0136.44
4.3.60.1070.0176.44
4.3.50.1170.0106.44
4.3.40.1170.0236.44
4.3.30.0530.0176.44
4.3.20.0570.0136.44
4.3.10.0630.0206.44
4.3.00.0530.0176.44

preferences:
51.95 ms | 401 KiB | 5 Q