3v4l.org

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

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.0.110.0040.00416.91
8.0.100.0070.00016.80
8.0.90.0050.00316.75
8.0.80.0120.00316.95
8.0.70.0030.00516.71
8.0.60.0000.00717.02
8.0.50.0000.00716.93
8.0.30.0120.01017.06
8.0.20.0160.01017.40
8.0.10.0070.00016.96
8.0.00.0070.01216.57
7.4.240.0000.00716.55
7.4.230.0040.00416.54
7.4.220.0070.01316.60
7.4.210.0080.00516.51
7.4.200.0070.00016.34
7.4.160.0100.00616.67
7.4.150.0070.01117.40
7.4.140.0060.01517.86
7.4.130.0120.00516.58
7.4.120.0100.00816.50
7.4.110.0100.00716.51
7.4.100.0120.00616.72
7.4.90.0090.00916.48
7.4.80.0040.01919.39
7.4.70.0080.00816.45
7.4.60.0090.01216.31
7.4.50.0000.00816.25
7.4.40.0090.00616.33
7.4.30.0000.01416.60
7.4.00.0070.01214.95
7.3.300.0060.00016.26
7.3.290.0060.01016.33
7.3.280.0100.00716.36
7.3.270.0170.00317.40
7.3.260.0160.00316.45
7.3.250.0080.01216.48
7.3.240.0150.00916.63
7.3.230.0070.01016.64
7.3.210.0100.00716.35
7.3.200.0110.00616.30
7.3.190.0100.00716.58
7.3.180.0090.00616.35
7.3.170.0060.00916.31
7.3.160.0130.00316.17
7.3.120.0040.01114.91
7.3.110.0030.01314.99
7.3.100.0100.00614.76
7.3.90.0030.01014.49
7.3.80.0000.01414.95
7.3.70.0030.00914.90
7.3.60.0000.00914.59
7.3.50.0070.01014.84
7.3.40.0030.00614.75
7.3.30.0000.01114.87
7.3.20.0060.00916.63
7.3.10.0030.00716.66
7.3.00.0030.01016.61
7.2.330.0130.00316.55
7.2.320.0100.00616.62
7.2.310.0040.01716.36
7.2.300.0150.00316.70
7.2.290.0120.00616.36
7.2.250.0040.01514.82
7.2.240.0100.01015.02
7.2.230.0060.00615.03
7.2.220.0090.00314.82
7.2.210.0040.01215.13
7.2.200.0070.00715.13
7.2.190.0040.01114.76
7.2.180.0000.01314.98
7.2.170.0070.00714.97
7.2.60.0050.00516.78
7.1.330.0030.01015.57
7.1.320.0030.00715.63
7.1.310.0080.00415.84
7.1.300.0000.01615.65
7.1.290.0040.00415.76
7.1.280.0060.00615.44
7.1.270.0030.01215.51
7.1.260.0080.00815.72
7.1.200.0070.00315.49
7.1.70.0060.00916.82
7.1.60.0230.00019.61
7.1.50.0000.01416.53
7.1.00.0030.07722.45
7.0.200.0030.00716.51
7.0.140.0000.07322.01
7.0.60.0030.04320.04
7.0.50.0030.04017.91
7.0.40.0200.07320.24
7.0.30.0300.07020.26
7.0.20.0170.04320.10
7.0.10.0030.08720.20
7.0.00.0070.08020.32
5.6.280.0000.07721.07
5.6.210.0030.07020.55
5.6.200.0070.03718.18
5.6.190.0130.04720.55
5.6.180.3270.04020.57
5.6.170.0370.06320.47
5.6.160.0070.08720.54
5.6.150.0100.07718.17
5.6.140.0030.06018.17
5.6.130.0030.04018.27
5.6.120.0030.05321.16
5.6.110.0130.07020.98
5.6.100.0030.08320.99
5.6.90.0100.07720.94
5.6.80.0100.03720.29
5.5.350.0270.08020.45
5.5.340.0100.05717.95
5.5.330.0100.07320.13
5.5.320.0230.04020.31
5.5.310.0400.05720.30
5.5.300.0030.07017.97
5.5.290.0070.08318.07
5.5.280.0030.06720.77
5.5.270.0070.08320.96
5.5.260.0100.05720.87
5.5.250.0030.06320.71
5.5.240.0070.05320.26
5.4.450.0470.04319.20
5.4.440.0430.03719.39
5.4.430.0200.04719.31
5.4.420.0070.06019.51
5.4.410.0230.05719.37
5.4.400.0130.06019.11
5.4.390.0200.05719.19
5.4.380.0130.06018.70
5.4.370.0100.07718.64
5.4.360.0300.06018.71
5.4.350.0230.06318.83
5.4.340.0070.07318.73
5.4.320.0070.03612.51
5.4.310.0100.03712.50
5.4.300.0060.03712.51
5.4.290.0060.04712.50
5.4.280.0090.04212.40
5.4.270.0070.03612.40
5.4.260.0110.04712.40
5.4.250.0050.03812.40
5.4.240.0080.04012.40
5.4.230.0100.03312.40
5.4.220.0080.03912.39
5.4.210.0050.03912.39
5.4.200.0080.03912.40
5.4.190.0120.03312.39
5.4.180.0060.04012.39
5.4.170.0080.04012.40
5.4.160.0100.03612.40
5.4.150.0080.03612.39
5.4.140.0040.04312.07
5.4.130.0100.04112.06
5.4.120.0070.03612.02
5.4.110.0060.03612.02
5.4.100.0100.03412.02
5.4.90.0030.04112.02
5.4.80.0080.04212.02
5.4.70.0100.03812.01
5.4.60.0060.03812.01
5.4.50.0070.03812.01
5.4.40.0100.04312.00
5.4.30.0090.03312.00
5.4.20.0060.03511.99
5.4.10.0070.03511.99
5.4.00.0070.03911.49
5.3.290.0090.04212.80
5.3.280.0090.03612.71
5.3.270.0100.04012.72
5.3.260.0090.04612.72
5.3.250.0110.04812.72
5.3.240.0060.04212.72
5.3.230.0080.04012.71
5.3.220.0050.04012.68
5.3.210.0050.04112.68
5.3.200.0050.03912.68
5.3.190.0100.04312.68
5.3.180.0070.03512.67
5.3.170.0080.03712.67
5.3.160.0070.03512.68
5.3.150.0080.03512.67
5.3.140.0100.03312.66
5.3.130.0070.03812.66
5.3.120.0120.03612.66
5.3.110.0060.04012.66
5.3.100.0100.03912.14
5.3.90.0060.04012.13
5.3.80.0090.04312.11
5.3.70.0110.04112.11
5.3.60.0090.03412.09
5.3.50.0100.03512.05
5.3.40.0090.03712.04
5.3.30.0060.03612.00
5.3.20.0080.03511.78
5.3.10.0070.03411.75
5.3.00.0070.03611.73
5.2.170.0080.0349.18
5.2.160.0070.0289.18
5.2.150.0050.0369.18
5.2.140.0070.0379.18
5.2.130.0070.0359.14
5.2.120.0100.0369.14
5.2.110.0080.0279.14
5.2.100.0030.0339.14
5.2.90.0040.0309.14
5.2.80.0050.0359.14
5.2.70.0060.0339.14
5.2.60.0050.0379.09
5.2.50.0050.0339.06
5.2.40.0040.0319.03
5.2.30.0070.0279.01
5.2.20.0060.0309.01
5.2.10.0050.0278.93
5.2.00.0040.0338.78
5.1.60.0050.0238.07
5.1.50.0030.0258.06
5.1.40.0040.0258.05
5.1.30.0050.0258.40
5.1.20.0050.0258.42
5.1.10.0080.0238.14
5.1.00.0040.0368.14
5.0.50.0050.0266.62
5.0.40.0070.0206.47
5.0.30.0050.0346.29
5.0.20.0080.0156.27
5.0.10.0040.0206.24
5.0.00.0010.0336.23
4.4.90.0020.0164.78
4.4.80.0000.0184.75
4.4.70.0040.0164.75
4.4.60.0010.0174.76
4.4.50.0030.0204.77
4.4.40.0040.0244.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0040.0144.85
4.4.00.0050.0234.76
4.3.110.0020.0164.67
4.3.100.0020.0164.66
4.3.90.0030.0144.63
4.3.80.0040.0264.59
4.3.70.0030.0184.63
4.3.60.0050.0174.63
4.3.50.0020.0214.63
4.3.40.0040.0244.54
4.3.30.0050.0173.28
4.3.20.0040.0133.26
4.3.10.0020.0153.22
4.3.00.0030.01314.41

preferences:
38.94 ms | 400 KiB | 5 Q