3v4l.org

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

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.0090.00918.14
8.3.50.0150.00422.84
8.3.40.0090.00618.67
8.3.30.0100.00718.68
8.3.20.0050.00220.30
8.3.10.0060.00320.28
8.3.00.0040.00719.25
8.2.180.0240.00016.32
8.2.170.0140.00422.96
8.2.160.0140.00720.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00620.87
8.2.110.0030.00622.08
8.2.100.0080.00417.78
8.2.90.0040.00418.92
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0050.00317.80
8.2.50.0040.00418.10
8.2.40.0030.00717.97
8.2.30.0040.00419.45
8.2.20.0070.00017.68
8.2.10.0050.00318.00
8.2.00.0040.00417.57
8.1.280.0100.01025.92
8.1.270.0080.00022.19
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.93
8.1.230.0070.00417.70
8.1.220.0050.00317.74
8.1.210.0040.00718.77
8.1.200.0060.00317.22
8.1.190.0080.00017.10
8.1.180.0020.00518.10
8.1.170.0030.00518.59
8.1.160.0040.00421.95
8.1.150.0040.00418.73
8.1.140.0000.00717.34
8.1.130.0000.00717.77
8.1.120.0050.00317.23
8.1.110.0070.00017.32
8.1.100.0020.00517.27
8.1.90.0040.00417.32
8.1.80.0070.00017.38
8.1.70.0000.00817.29
8.1.60.0030.00517.36
8.1.50.0070.00017.41
8.1.40.0060.00317.39
8.1.30.0040.00417.51
8.1.20.0000.00817.39
8.1.10.0070.00017.43
8.1.00.0040.00417.21
8.0.300.0040.00418.77
8.0.290.0080.00016.58
8.0.280.0030.00318.34
8.0.270.0030.00317.05
8.0.260.0060.00017.11
8.0.250.0030.00316.73
8.0.240.0040.00416.90
8.0.230.0040.00316.75
8.0.220.0030.00316.68
8.0.210.0000.00716.70
8.0.200.0040.00416.88
8.0.190.0030.00316.84
8.0.180.0050.00216.78
8.0.170.0040.00416.84
8.0.160.0000.00716.59
8.0.150.0070.00016.67
8.0.140.0000.00716.75
8.0.130.0030.00313.24
8.0.120.0030.00616.65
8.0.110.0000.00716.76
8.0.100.0040.00416.80
8.0.90.0080.00016.83
8.0.80.0080.00816.81
8.0.70.0040.00416.68
8.0.60.0000.00716.66
8.0.50.0000.00716.73
8.0.30.0100.01216.97
8.0.20.0070.01217.40
8.0.10.0030.00516.77
8.0.00.0100.00716.61
7.4.330.0050.00015.00
7.4.320.0030.00316.34
7.4.300.0030.00316.51
7.4.290.0070.00016.35
7.4.280.0030.00516.43
7.4.270.0070.00016.50
7.4.260.0070.00016.50
7.4.250.0040.00416.36
7.4.240.0040.00316.25
7.4.230.0070.00016.36
7.4.220.0070.01316.49
7.4.210.0100.01016.60
7.4.200.0000.00716.27
7.4.160.0050.01016.31
7.4.150.0060.01317.40
7.4.140.0110.01117.86
7.4.130.0130.00516.43
7.4.120.0100.01116.44
7.4.110.0080.00816.40
7.4.100.0130.00816.27
7.4.90.0090.01016.41
7.4.80.0060.01619.39
7.4.70.0170.00316.55
7.4.60.0090.01216.52
7.4.50.0000.00616.41
7.4.40.0060.01516.18
7.4.30.0000.01616.23
7.4.00.0130.00314.72
7.3.330.0050.00013.15
7.3.320.0030.00313.19
7.3.310.0040.00416.07
7.3.300.0030.00316.19
7.3.290.0100.00316.15
7.3.280.0100.00816.15
7.3.270.0110.00817.40
7.3.260.0150.00416.52
7.3.250.0090.01116.21
7.3.240.0110.00716.17
7.3.230.0070.01016.39
7.3.210.0070.01016.14
7.3.200.0120.00819.39
7.3.190.0030.01316.34
7.3.180.0120.00916.13
7.3.170.0100.00716.27
7.3.160.0060.01016.12
7.2.330.0100.00716.36
7.2.320.0000.01716.55
7.2.310.0200.00316.34
7.2.300.0040.01416.39
7.2.290.0120.00416.55
7.2.00.0100.01019.08
7.1.100.0000.01117.80
7.1.70.0030.00717.02
7.1.60.0120.01219.61
7.1.50.0100.01416.86
7.1.00.0070.07322.54
7.0.200.0030.00616.67
7.0.140.0100.07021.95
7.0.60.0070.08719.89
7.0.50.0070.05017.86
7.0.40.0070.09020.13
7.0.30.0330.05020.06
7.0.20.0270.05720.08
7.0.10.0030.08720.10
7.0.00.0200.05320.32
5.6.280.0030.07320.91
5.6.210.0100.03720.66
5.6.200.0030.04018.14
5.6.190.0230.07320.64
5.6.180.0300.07720.57
5.6.170.0300.07320.54
5.6.160.0000.06020.50
5.6.150.0070.03718.14
5.6.140.0070.08018.17
5.6.130.0130.07718.21
5.6.120.0100.08320.91
5.6.110.0030.08720.99
5.6.100.0070.08721.12
5.6.90.0070.04321.01
5.6.80.0030.06020.39
5.6.70.0300.03320.38
5.5.350.0200.03720.30
5.5.340.0100.04718.04
5.5.330.0000.06320.57
5.5.320.0330.04320.25
5.5.310.0400.07020.34
5.5.300.0100.07317.95
5.5.290.0170.07317.98
5.5.280.0070.05320.74
5.5.270.0030.04020.77
5.5.260.0100.08320.96
5.5.250.0130.03720.57
5.5.240.0200.05320.07
5.4.450.0130.04719.54
5.4.440.0370.04719.55
5.4.430.0370.04319.52
5.4.420.0400.04719.52
5.4.410.0070.04319.34
5.4.400.0070.02719.23
5.4.390.0730.03319.22
5.4.380.0900.06718.80
5.4.370.1000.05318.72
5.4.360.1200.05318.72
5.4.350.0730.06718.75
5.4.340.1170.07318.56
5.4.320.0040.04112.51
5.4.310.0100.03512.50
5.4.300.0030.04312.51
5.4.290.0080.03512.50
5.4.280.0060.03712.41
5.4.270.0120.03312.41
5.4.260.0040.03912.40
5.4.250.0080.03612.40
5.4.240.0080.03612.40
5.4.230.0060.03712.39
5.4.220.0070.03712.40
5.4.210.0050.03512.39
5.4.200.0040.05612.39
5.4.190.0030.03912.39
5.4.180.0060.03612.39
5.4.170.0080.03512.40
5.4.160.0030.04012.40
5.4.150.0050.03812.39
5.4.140.0090.03512.07
5.4.130.0070.03612.06
5.4.120.0100.03412.02
5.4.110.0130.03112.02
5.4.100.0100.03312.02
5.4.90.0060.04112.01
5.4.80.0070.03612.02
5.4.70.0070.03312.02
5.4.60.0070.03412.01
5.4.50.0080.03312.01
5.4.40.0070.03612.00
5.4.30.0090.03512.00
5.4.20.0060.04012.00
5.4.10.0080.03812.00
5.4.00.0070.04411.48
5.3.290.0070.03912.80
5.3.280.0060.03812.71
5.3.270.0100.03512.72
5.3.260.0070.04012.72
5.3.250.0070.03812.72
5.3.240.0100.03212.72
5.3.230.0100.03412.71
5.3.220.0050.03812.68
5.3.210.0030.04512.68
5.3.200.0080.03412.68
5.3.190.0120.03212.68
5.3.180.0070.03912.68
5.3.170.0050.03912.67
5.3.160.0110.03312.67
5.3.150.0060.03812.67
5.3.140.0040.04012.66
5.3.130.0040.04312.66
5.3.120.0060.03912.66
5.3.110.0040.04112.66
5.3.100.0080.04312.13
5.3.90.0070.03412.12
5.3.80.0040.03912.11
5.3.70.0050.03712.11
5.3.60.0060.03712.09
5.3.50.0090.03512.04
5.3.40.0080.03512.04
5.3.30.0080.03312.00
5.3.20.0070.03511.77
5.3.10.0080.03411.74
5.3.00.0060.03611.73
5.2.170.0050.0319.18
5.2.160.0010.0349.18
5.2.150.0040.0369.18
5.2.140.0060.0319.18
5.2.130.0150.0229.14
5.2.120.0130.0239.15
5.2.110.0090.0269.15
5.2.100.0100.0259.14
5.2.90.0080.0309.14
5.2.80.0050.0329.14
5.2.70.0050.0319.14
5.2.60.0070.0339.09
5.2.50.0050.0329.06
5.2.40.0090.0259.03
5.2.30.0070.0349.01
5.2.20.0050.0299.00
5.2.10.0070.0348.92
5.2.00.0040.0448.79
5.1.60.0050.0318.07
5.1.50.0030.0268.07
5.1.40.0060.0248.05
5.1.30.0060.0258.40
5.1.20.0040.0278.42
5.1.10.0040.0268.14
5.1.00.0090.0218.14
5.0.50.0030.0226.62
5.0.40.0040.0196.47
5.0.30.0040.0306.29
5.0.20.0040.0186.27
5.0.10.0030.0206.24
5.0.00.0040.0306.23
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0010.0174.75
4.4.60.0020.0184.76
4.4.50.0040.0154.77
4.4.40.0030.0314.71
4.4.30.0010.0184.76
4.4.20.0050.0144.85
4.4.10.0050.0134.85
4.4.00.0060.0254.75
4.3.110.0050.0134.67
4.3.100.0030.0144.67
4.3.90.0050.0134.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0050.0164.63
4.3.40.0040.0304.53
4.3.30.0030.0153.28
4.3.20.0000.0183.26
4.3.10.0030.0143.22
4.3.00.0030.01718.16

preferences:
39.72 ms | 401 KiB | 5 Q