3v4l.org

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

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.40.0120.00918.48
8.3.30.0110.00318.91
8.3.20.0070.00020.27
8.3.10.0000.00920.41
8.3.00.0090.00019.13
8.2.170.0140.00322.96
8.2.160.0140.00420.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00321.02
8.2.110.0080.00320.35
8.2.100.0120.00017.78
8.2.90.0040.00417.72
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0030.00617.91
8.2.50.0140.00018.07
8.2.40.0030.00619.85
8.2.30.0030.00617.86
8.2.20.0070.00017.43
8.2.10.0000.00717.80
8.2.00.0030.00617.46
8.1.270.0000.00821.92
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00520.54
8.1.230.0040.00822.82
8.1.220.0080.00017.74
8.1.210.0030.00718.91
8.1.200.0060.00317.10
8.1.190.0000.01016.98
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0040.00418.62
8.1.150.0000.00720.55
8.1.140.0040.00417.34
8.1.130.0000.00717.66
8.1.120.0040.00417.24
8.1.110.0040.00417.40
8.1.100.0070.00017.31
8.1.90.0030.00517.29
8.1.80.0080.00017.21
8.1.70.0000.00717.29
8.1.60.0050.00317.42
8.1.50.0040.00417.29
8.1.40.0050.00217.38
8.1.30.0000.00817.43
8.1.20.0040.00417.52
8.1.10.0040.00417.25
8.1.00.0070.00017.33
8.0.300.0070.00019.95
8.0.290.0040.00416.63
8.0.280.0070.00018.32
8.0.270.0030.00317.16
8.0.260.0030.00317.19
8.0.250.0020.00516.89
8.0.240.0050.00316.81
8.0.230.0000.00716.81
8.0.220.0000.00916.80
8.0.210.0030.00316.66
8.0.200.0030.00316.69
8.0.190.0090.00016.79
8.0.180.0030.00516.75
8.0.170.0030.00516.68
8.0.160.0000.00716.75
8.0.150.0000.00716.77
8.0.140.0000.00716.71
8.0.130.0030.00313.19
8.0.120.0000.00816.63
8.0.110.0050.00216.86
8.0.100.0070.00016.56
8.0.90.0040.00416.75
8.0.80.0210.00316.75
8.0.70.0030.00516.65
8.0.60.0040.00416.74
8.0.50.0030.00516.67
8.0.30.0100.00916.68
8.0.20.0110.00817.40
8.0.10.0040.00416.91
8.0.00.0090.00916.56
7.4.330.0000.00515.02
7.4.320.0000.00716.33
7.4.300.0040.00416.37
7.4.290.0030.00316.37
7.4.280.0000.00916.38
7.4.270.0070.00016.48
7.4.260.0030.00516.43
7.4.250.0040.00416.29
7.4.240.0020.00516.42
7.4.230.0070.00016.57
7.4.220.0100.01016.30
7.4.210.0030.01116.38
7.4.200.0000.00716.28
7.4.160.0120.00416.48
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0070.01016.33
7.4.120.0070.00916.34
7.4.110.0100.00716.34
7.4.100.0080.00816.54
7.4.90.0120.00416.32
7.4.80.0150.00619.39
7.4.70.0070.01016.40
7.4.60.0000.01616.47
7.4.50.0040.00416.07
7.4.40.0110.01116.43
7.4.30.0120.00916.47
7.4.00.0000.01614.97
7.3.330.0030.00313.18
7.3.320.0000.00613.03
7.3.310.0000.00916.24
7.3.300.0060.00016.04
7.3.290.0090.00616.10
7.3.280.0080.00916.15
7.3.270.0090.00917.40
7.3.260.0090.00916.49
7.3.250.0110.00516.33
7.3.240.0070.01016.25
7.3.230.0090.00916.39
7.3.210.0070.01416.37
7.3.200.0130.00316.11
7.3.190.0150.00616.33
7.3.180.0060.01016.33
7.3.170.0060.01616.37
7.3.160.0080.00816.39
7.2.330.0070.01016.46
7.2.320.0130.00416.30
7.2.310.0070.01316.35
7.2.300.0060.01016.48
7.2.290.0070.01116.34
7.2.60.0070.00716.66
7.1.200.0090.00315.68
7.1.100.0070.01017.85
7.1.70.0000.00916.95
7.1.60.0070.01119.61
7.1.50.0040.01116.77
7.1.00.0030.07722.42
7.0.200.0060.00316.43
7.0.140.0100.06722.04
7.0.60.0070.05319.96
7.0.50.0030.05017.96
7.0.40.0030.09020.20
7.0.30.0170.06020.08
7.0.20.0270.08020.23
7.0.10.0070.04020.13
7.0.00.0070.08720.18
5.6.280.0000.07720.91
5.6.210.0170.07320.67
5.6.200.0030.07018.16
5.6.190.0070.07720.52
5.6.180.0500.06320.39
5.6.170.0270.07320.71
5.6.160.0070.05720.52
5.6.150.0070.03318.18
5.6.140.0130.04018.23
5.6.130.0130.05318.15
5.6.120.0100.07021.00
5.6.110.0200.07020.96
5.6.100.0030.07020.98
5.6.90.0070.08321.10
5.6.80.0170.06320.53
5.5.350.3030.03320.30
5.5.340.0100.06318.02
5.5.330.0030.08720.29
5.5.320.0500.06020.32
5.5.310.0370.06720.30
5.5.300.0100.07017.99
5.5.290.0170.07017.98
5.5.280.0030.06020.77
5.5.270.0030.05020.86
5.5.260.0070.04720.87
5.5.250.0070.09020.61
5.5.240.0130.08020.07
5.4.450.0470.06719.48
5.4.440.0430.06019.36
5.4.430.0400.04019.38
5.4.420.0430.06719.39
5.4.410.0500.06019.12
5.4.400.0500.05718.93
5.4.390.0300.04019.05
5.4.380.0400.06719.11
5.4.370.0330.04019.05
5.4.360.0500.03319.17
5.4.350.0430.04019.06
5.4.340.0470.06319.15
5.4.320.0300.04319.17
5.4.310.0500.05718.98
5.4.300.0330.07318.97
5.4.290.0330.03719.06
5.4.280.0400.06719.07
5.4.270.0270.04018.95
5.4.260.0370.03319.09
5.4.250.0200.05319.11
5.4.240.0270.03719.09
5.4.230.0300.03719.15
5.4.220.0230.04019.06
5.4.210.0230.04719.05
5.4.200.0200.04019.06
5.4.190.0330.03719.14
5.4.180.0230.03718.91
5.4.170.0200.04019.06
5.4.160.0230.04018.83
5.4.150.0230.04318.96
5.4.140.0200.03716.51
5.4.130.0270.03316.32
5.4.120.0270.04016.37
5.4.110.0300.03016.45
5.4.100.0270.03316.18
5.4.90.0230.03316.45
5.4.80.0270.03016.55
5.4.70.0330.03016.25
5.4.60.0270.03016.38
5.4.50.0230.04016.23
5.4.40.0300.03716.52
5.4.30.0270.03016.53
5.4.20.0270.04316.37
5.4.10.0200.04716.55
5.4.00.0300.03715.81
5.3.290.0530.05714.77
5.3.280.0230.03714.61
5.3.270.0230.03714.71
5.3.260.0230.04014.59
5.3.250.0330.02714.68
5.3.240.0230.04014.57
5.3.230.0300.03714.51
5.3.220.0230.03714.73
5.3.210.0230.04714.54
5.3.200.0230.04714.48
5.3.190.0270.03314.55
5.3.180.0200.04014.48
5.3.170.0300.03014.64
5.3.160.0300.04014.67
5.3.150.0270.03314.78
5.3.140.0230.03714.63
5.3.130.0230.04714.57
5.3.120.0200.05714.46
5.3.110.0300.04714.63
5.3.100.0300.07314.02
5.3.90.0470.05713.99
5.3.80.0400.06714.02
5.3.70.0330.06713.92
5.3.60.0300.07014.01
5.3.50.0300.07713.96
5.3.40.0400.04014.00
5.3.30.0400.05713.92
5.3.20.0500.04013.61
5.3.10.0400.06313.57
5.3.00.0270.05013.68
5.2.170.0270.05011.12
5.2.160.0270.03711.37
5.2.150.0330.05311.22
5.2.140.0300.03311.25
5.2.130.0400.04711.00
5.2.120.0270.03711.07
5.2.110.0270.02711.00
5.2.100.0230.05311.03
5.2.90.0230.04311.11
5.2.80.0330.04711.05
5.2.70.0300.03711.14
5.2.60.0470.03011.12
5.2.50.0230.06310.93
5.2.40.0300.05710.99
5.2.30.0230.03010.97
5.2.20.0330.05310.89
5.2.10.0270.04310.95
5.2.00.0230.06010.62
5.1.60.0370.03310.07
5.1.50.0300.0439.97
5.1.40.0270.0309.96
5.1.30.0230.05310.33
5.1.20.0200.03010.28
5.1.10.0300.04310.07
5.1.00.0270.0309.97
5.0.50.0130.0378.63
5.0.40.0100.0308.56
5.0.30.0100.0408.30
5.0.20.0130.0438.36
5.0.10.0100.0238.25
5.0.00.0130.0278.27
4.4.90.0130.0337.76
4.4.80.0170.0177.76
4.4.70.0170.0177.76
4.4.60.0130.0377.76
4.4.50.0130.0277.76
4.4.40.0170.0207.76
4.4.30.0100.0337.76
4.4.20.0070.0177.76
4.4.10.0170.0307.76
4.4.00.0100.0507.76
4.3.110.0100.0207.76
4.3.100.0100.0207.76
4.3.90.0130.0207.76
4.3.80.0170.0537.76
4.3.70.0130.0137.76
4.3.60.0130.0137.76
4.3.50.0130.0177.76
4.3.40.0130.0207.77
4.3.30.0100.0307.77
4.3.20.0070.0407.77
4.3.10.0030.0407.77
4.3.00.0030.0337.77

preferences:
43.93 ms | 400 KiB | 5 Q