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; } }

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.0140.00316.38
8.3.50.0100.00822.79
8.3.40.0110.00718.61
8.3.30.0140.00019.02
8.3.20.0040.00420.16
8.3.10.0000.00820.41
8.3.00.0040.00419.13
8.2.180.0070.01116.32
8.2.170.0140.00022.96
8.2.160.0160.00320.39
8.2.150.0040.00424.18
8.2.140.0140.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.01
8.2.110.0060.00320.43
8.2.100.0110.00017.97
8.2.90.0040.00418.97
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0000.00717.91
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0000.00719.44
8.2.20.0040.00417.64
8.2.10.0000.00817.93
8.2.00.0040.00417.55
8.1.280.0030.01425.92
8.1.270.0080.00022.10
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.94
8.1.230.0090.00319.04
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0100.00017.13
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00618.52
8.1.160.0000.00822.02
8.1.150.0040.00418.84
8.1.140.0050.00217.21
8.1.130.0070.00017.82
8.1.120.0000.00717.36
8.1.110.0040.00417.40
8.1.100.0040.00317.36
8.1.90.0030.00317.25
8.1.80.0040.00417.36
8.1.70.0030.00317.34
8.1.60.0040.00417.44
8.1.50.0040.00417.29
8.1.40.0040.00417.45
8.1.30.0040.00417.50
8.1.20.0000.00817.46
8.1.10.0040.00417.28
8.1.00.0060.00317.30
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0070.00018.20
8.0.270.0000.00716.75
8.0.260.0000.00617.14
8.0.250.0030.00316.83
8.0.240.0080.00016.86
8.0.230.0000.00816.86
8.0.220.0050.00316.64
8.0.210.0000.00716.83
8.0.200.0030.00316.75
8.0.190.0040.00416.82
8.0.180.0050.00216.82
8.0.170.0040.00416.80
8.0.160.0070.00016.65
8.0.150.0040.00416.80
8.0.140.0000.00816.64
8.0.130.0030.00313.21
8.0.120.0100.00016.79
8.0.110.0040.00416.60
8.0.100.0070.00016.82
8.0.90.0030.00516.84
8.0.80.0110.00816.74
8.0.70.0060.00316.74
8.0.60.0070.00016.69
8.0.50.0040.00416.61
8.0.30.0080.01117.04
8.0.20.0130.00517.40
8.0.10.0000.00716.86
8.0.00.0080.01016.64
7.4.330.0050.00015.00
7.4.320.0030.00316.50
7.4.300.0030.00316.38
7.4.290.0000.00716.34
7.4.280.0030.00616.48
7.4.270.0070.00016.34
7.4.260.0090.00016.48
7.4.250.0040.00416.45
7.4.240.0020.00616.44
7.4.230.0030.00316.48
7.4.220.0040.01516.33
7.4.210.0030.01016.55
7.4.200.0000.00716.55
7.4.160.0190.00416.51
7.4.150.0140.00417.40
7.4.140.0130.00517.86
7.4.130.0070.01016.32
7.4.120.0080.01116.36
7.4.110.0140.00316.42
7.4.100.0140.01016.39
7.4.90.0030.01316.36
7.4.80.0100.00719.39
7.4.70.0120.00616.37
7.4.60.0030.01316.37
7.4.50.0040.00016.56
7.4.40.0090.00616.17
7.4.30.0040.01116.28
7.4.00.0040.00814.47
7.3.330.0000.00513.05
7.3.320.0070.00012.98
7.3.310.0070.00016.09
7.3.300.0070.00016.15
7.3.290.0040.01116.12
7.3.280.0100.00716.17
7.3.270.0070.01117.40
7.3.260.0070.01016.29
7.3.250.0090.01216.29
7.3.240.0100.00716.36
7.3.230.0090.01116.41
7.3.210.0120.00616.41
7.3.200.0060.01719.39
7.3.190.0100.00716.21
7.3.180.0090.00916.37
7.3.170.0120.00916.30
7.3.160.0080.00816.32
7.3.10.0070.00716.18
7.3.00.0040.00716.60
7.2.330.0090.00916.44
7.2.320.0040.01216.50
7.2.310.0140.01016.57
7.2.300.0030.01416.55
7.2.290.0070.01116.25
7.2.130.0060.00816.68
7.2.120.0030.01016.62
7.2.110.0110.00616.59
7.2.100.0080.01016.58
7.2.90.0050.00916.71
7.2.80.0060.00816.51
7.2.70.0090.00616.79
7.2.60.0100.00916.59
7.2.50.0100.00716.70
7.2.40.0050.00916.75
7.2.30.0040.01016.48
7.2.20.0120.00516.66
7.2.10.0060.00716.75
7.2.00.0090.00617.24
7.1.250.0070.00215.63
7.1.230.0080.00915.68
7.1.220.0110.00415.46
7.1.210.0210.00015.45
7.1.200.0090.00615.52
7.1.190.0080.00815.50
7.1.180.0120.00615.69
7.1.170.0080.01215.50
7.1.160.0110.00415.44
7.1.150.0080.00815.76
7.1.140.0200.00315.65
7.1.130.0040.01115.42
7.1.120.0120.00315.76
7.1.110.0240.00415.47
7.1.100.0100.00316.83
7.1.90.0240.00315.53
7.1.80.0050.01415.66
7.1.70.0090.00616.27
7.1.60.0120.00917.64
7.1.50.0050.01416.40
7.1.40.0110.00715.70
7.1.30.0250.00515.96
7.1.20.0220.01015.65
7.1.10.0090.00915.72
7.1.00.0090.03818.88
7.0.310.0130.00915.43
7.0.300.0100.00415.36
7.0.290.0140.00015.09
7.0.280.0140.00514.91
7.0.270.0160.00915.38
7.0.260.0120.00815.22
7.0.250.0130.00015.27
7.0.240.0140.00015.46
7.0.230.0100.01015.20
7.0.220.0220.00415.28
7.0.210.0110.00315.10
7.0.200.0050.00715.85
7.0.190.0080.00415.45
7.0.180.0150.00015.11
7.0.170.0130.00315.11
7.0.160.0100.00315.46
7.0.150.0070.00715.07
7.0.140.0120.03618.65
7.0.130.0100.00315.32
7.0.120.0080.00615.40
7.0.110.0150.02018.59
7.0.100.0130.02117.59
7.0.90.0110.02217.65
7.0.80.0090.02917.49
7.0.70.0120.01917.49
7.0.60.0140.02117.47
7.0.50.0090.02417.55
7.0.40.0050.02516.49
7.0.30.0030.02216.45
7.0.20.0040.02616.54
7.0.10.0160.01416.51
7.0.00.0060.01816.49
5.6.380.0100.00714.43
5.6.370.0200.00013.98
5.6.360.0030.01214.27
5.6.350.0050.00914.26
5.6.340.0100.00414.27
5.6.330.0030.01014.31
5.6.320.0100.00614.17
5.6.310.0050.01014.11
5.6.300.0110.00414.38
5.6.290.0070.00714.08
5.6.280.0070.03917.59
5.6.270.0110.00413.92
5.6.260.0120.01517.43
5.6.250.0070.02317.42
5.6.240.0080.02217.46
5.6.230.0070.02417.32
5.6.220.0010.02517.29
5.6.210.0110.01917.42
5.6.200.0100.03317.62
5.6.190.0060.02417.35
5.6.180.0120.02317.30
5.6.170.0060.02517.44
5.6.160.0070.03217.39
5.6.150.0030.04917.39
5.6.140.0060.02217.44
5.6.130.0090.01717.34
5.6.120.0060.02617.25
5.6.110.0100.02217.26
5.6.100.0060.02117.35
5.6.90.0070.02217.33
5.6.80.0060.02417.09
5.6.70.0060.02216.97
5.6.60.0070.02217.12
5.6.50.0090.03216.99
5.6.40.0080.01517.04
5.6.30.0060.02017.12
5.6.20.0080.02016.96
5.6.10.0070.02316.99
5.6.00.0070.03516.92
5.5.380.0070.02214.13
5.5.370.0040.03014.29
5.5.360.0070.02214.18
5.5.350.0030.02314.30
5.5.340.0100.01314.44
5.5.330.0070.03714.34
5.5.320.0080.01714.33
5.5.310.0030.02814.50
5.5.300.0070.02514.67
5.5.290.0120.01514.42
5.5.280.0120.01814.24
5.5.270.0050.02914.53
5.5.260.0090.01814.48
5.5.250.0090.02814.47
5.5.240.0060.01813.94
5.5.230.0120.01614.22
5.5.220.0050.02014.09
5.5.210.0030.03914.09
5.5.200.0060.01814.02
5.5.190.0070.01714.13
5.5.180.0060.02214.23
5.5.170.0070.00713.58
5.5.160.0110.01814.03
5.5.150.0050.01814.15
5.5.140.0040.01914.12
5.5.130.0050.01714.16
5.5.120.0060.02514.17
5.5.110.0050.02213.99
5.5.100.0040.02314.07
5.5.90.0030.03213.98
5.5.80.0050.03814.18
5.5.70.0030.02914.12
5.5.60.0030.02414.10
5.5.50.0070.02314.05
5.5.40.0030.02214.10
5.5.30.0070.02114.01
5.5.20.0050.02014.07
5.5.10.0020.02214.09
5.5.00.0100.02414.21
5.4.450.0100.02315.25
5.4.440.0050.02515.20
5.4.430.0030.02114.95
5.4.420.0100.03015.15
5.4.410.0030.02415.04
5.4.400.0000.02414.89
5.4.390.0050.02015.09
5.4.380.0020.02715.05
5.4.370.0040.01914.90
5.4.360.0040.02315.03
5.4.350.0050.03114.99
5.4.340.0040.01715.10
5.4.330.0040.00410.96
5.4.320.0090.02814.84
5.4.310.0070.01814.75
5.4.300.0050.02514.93
5.4.290.0100.01514.91
5.4.280.0060.02114.94
5.4.270.0070.03714.80
5.4.260.0110.01014.96
5.4.250.0020.02314.72
5.4.240.0060.03815.01
5.4.230.0070.03715.03
5.4.220.0060.04615.06
5.4.210.0040.03314.71
5.4.200.0080.02214.87
5.4.190.0000.02714.99
5.4.180.0070.01814.81
5.4.170.0070.02315.10
5.4.160.0070.01714.75
5.4.150.0080.01715.07
5.4.140.0030.02213.68
5.4.130.0050.02013.48
5.4.120.0020.03813.51
5.4.110.0000.02713.53
5.4.100.0070.01813.69
5.4.90.0040.03613.45
5.4.80.0050.02513.62
5.4.70.0030.02213.39
5.4.60.0110.01513.72
5.4.50.0060.02313.66
5.4.40.0060.02013.74
5.4.30.0030.02113.68
5.4.20.0080.01313.69
5.4.10.0070.02013.74
5.4.00.0030.01813.33
5.3.290.0050.03312.58
5.3.280.0030.03812.42
5.3.270.0030.02312.46
5.3.260.0090.02112.49
5.3.250.0090.01812.43
5.3.240.0040.02112.27
5.3.230.0070.01812.47
5.3.220.0070.03612.29
5.3.210.0000.03012.47
5.3.200.0030.02412.33
5.3.190.0040.02112.42
5.3.180.0050.01612.39
5.3.170.0040.02312.47
5.3.160.0050.02012.56
5.3.150.0080.02212.50
5.3.140.0040.02212.46
5.3.130.0050.02012.42
5.3.120.0100.01312.46
5.3.110.0050.02212.29
5.3.100.0080.03812.13
5.3.90.0050.02012.22
5.3.80.0020.02212.11
5.3.70.0060.03212.10
5.3.60.0090.01312.11
5.3.50.0070.03811.98
5.3.40.0070.01812.10
5.3.30.0070.02811.99
5.3.20.0040.01712.02
5.3.10.0060.01411.84
5.3.00.0030.01811.84
5.2.170.0110.02710.62
5.2.160.0070.02310.63
5.2.150.0080.01210.47
5.2.140.0090.02810.58
5.2.130.0020.02610.59
5.2.120.0060.02610.60
5.2.110.0020.01910.47
5.2.100.0040.01510.53
5.2.90.0030.01610.60
5.2.80.0050.01610.55
5.2.70.0000.02410.56
5.2.60.0060.01310.53
5.2.50.0020.01910.60
5.2.40.0070.01210.60
5.2.30.0030.01510.54
5.2.20.0000.01910.50
5.2.10.0030.01310.39
5.2.00.0050.01710.42
5.1.60.0040.01310.12
5.1.50.0020.01310.11
5.1.40.0020.01510.22
5.1.30.0060.02210.21
5.1.20.0050.02210.11
5.1.10.0020.01410.14
5.1.00.0030.01510.12
5.0.50.0010.01310.11
5.0.40.0020.01310.11
5.0.30.0030.01510.11
5.0.20.0030.01110.11
5.0.10.0030.01010.11
5.0.00.0030.02210.11
4.4.90.0030.00910.11
4.4.80.0000.01110.11
4.4.70.0000.01110.11
4.4.60.0000.01110.11
4.4.50.0030.00710.11
4.4.40.0020.01410.11
4.4.30.0020.00810.11
4.4.20.0040.00710.11
4.4.10.0030.00810.11
4.4.00.0020.01310.11
4.3.110.0030.00810.11
4.3.100.0020.00910.11
4.3.90.0020.00910.11
4.3.80.0030.01310.11
4.3.70.0010.01110.11
4.3.60.0030.00810.11
4.3.50.0020.01110.11
4.3.40.0000.01210.11
4.3.30.0020.00810.11
4.3.20.0020.01010.11
4.3.10.0000.00810.11
4.3.00.0040.00710.11

preferences:
53.77 ms | 401 KiB | 5 Q