3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooNoMoreException extends Exception {} class Foo { protected $count = 500; public function step() { if (!$this->count) { throw new FooNoMoreException('No more steps to take.'); } $this->count--; } } $f = new Foo; try { while ($f->step() || true) {} } catch (FooNoMoreException $e) {} var_dump($f);

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.00718.43
8.3.50.0140.00321.93
8.3.40.0070.00718.89
8.3.30.0140.00019.04
8.3.20.0040.00420.30
8.3.10.0080.00023.69
8.3.00.0080.00320.77
8.2.180.0120.00918.41
8.2.170.0070.00722.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00820.90
8.2.110.0090.00022.26
8.2.100.0040.00819.33
8.2.90.0030.00619.41
8.2.80.0040.00417.97
8.2.70.0030.00717.75
8.2.60.0030.00517.93
8.2.50.0030.00618.07
8.2.40.0030.00519.83
8.2.30.0000.00718.43
8.2.20.0000.00817.82
8.2.10.0000.00818.12
8.2.00.0000.00817.84
8.1.280.0070.00725.92
8.1.270.0060.00323.92
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0040.00423.76
8.1.230.0060.00619.10
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00717.48
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0040.00421.89
8.1.150.0040.00418.60
8.1.140.0040.00417.46
8.1.130.0050.00217.83
8.1.120.0000.00717.50
8.1.110.0000.00717.45
8.1.100.0070.00017.42
8.1.90.0040.00417.45
8.1.80.0050.00217.47
8.1.70.0080.00017.42
8.1.60.0060.00317.51
8.1.50.0030.00617.50
8.1.40.0000.00817.57
8.1.30.0030.00617.49
8.1.20.0000.00817.71
8.1.10.0040.00417.52
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0070.00017.27
8.0.260.0000.00617.14
8.0.250.0020.00516.96
8.0.240.0000.00717.02
8.0.230.0030.00316.90
8.0.220.0080.00016.98
8.0.210.0030.00316.99
8.0.200.0030.00316.97
8.0.190.0000.01117.06
8.0.180.0040.00416.89
8.0.170.0050.00316.84
8.0.160.0040.00416.90
8.0.150.0040.00416.92
8.0.140.0030.00516.94
8.0.130.0050.00013.45
8.0.120.0030.00516.83
8.0.110.0020.00516.97
8.0.100.0030.00316.75
8.0.90.0040.00416.98
8.0.80.0070.00717.00
8.0.70.0000.00716.88
8.0.60.0040.00416.81
8.0.50.0040.00416.80
8.0.30.0060.01217.02
8.0.20.0130.00617.40
8.0.10.0000.00717.07
8.0.00.0100.00816.77
7.4.330.0050.00015.05
7.4.320.0030.00316.64
7.4.300.0000.00816.59
7.4.290.0040.00416.45
7.4.280.0050.00216.63
7.4.270.0070.00016.52
7.4.260.0090.00016.34
7.4.250.0050.00316.53
7.4.240.0020.00516.59
7.4.230.0070.00016.40
7.4.220.0110.00616.58
7.4.210.0060.00816.62
7.4.200.0070.00016.34
7.4.160.0130.00316.44
7.4.150.0040.01317.40
7.4.140.0110.01017.86
7.4.130.0120.00716.54
7.4.120.0100.00716.53
7.4.110.0060.01016.63
7.4.100.0040.01316.49
7.4.90.0070.01016.71
7.4.80.0150.00919.39
7.4.70.0100.01016.56
7.4.60.0090.01216.37
7.4.50.0040.00016.38
7.4.40.0040.01216.60
7.4.30.0090.00916.42
7.4.00.0110.00715.06
7.3.330.0030.00313.38
7.3.320.0030.00313.31
7.3.310.0030.00316.39
7.3.300.0060.00016.28
7.3.290.0110.00816.38
7.3.280.0070.01016.36
7.3.270.0110.00617.40
7.3.260.0120.01216.60
7.3.250.0120.00816.52
7.3.240.0160.00716.62
7.3.230.0150.00316.43
7.3.210.0140.00316.46
7.3.200.0030.01319.39
7.3.190.0090.00916.56
7.3.180.0030.01316.66
7.3.170.0040.01616.43
7.3.160.0030.01316.40
7.3.120.0030.01315.06
7.3.110.0000.01814.95
7.3.100.0030.01014.77
7.3.90.0080.00414.86
7.3.80.0000.01114.55
7.3.70.0040.00814.76
7.3.60.0090.00314.80
7.3.50.0040.01214.76
7.3.40.0040.00714.80
7.3.30.0030.01014.71
7.3.20.0030.01016.83
7.3.10.0050.00516.61
7.3.00.0110.00716.58
7.2.330.0140.00616.76
7.2.320.0150.00316.70
7.2.310.0030.01416.46
7.2.300.0040.01216.58
7.2.290.0000.01816.80
7.2.240.0060.00614.82
7.2.230.0040.01114.63
7.2.220.0030.00614.95
7.2.210.0060.01215.27
7.2.200.0080.00314.95
7.2.190.0100.00714.84
7.2.180.0060.01215.13
7.2.170.0130.00715.03
7.2.160.0140.00414.73
7.2.150.0120.00316.91
7.2.140.0030.01216.91
7.2.130.0040.00816.75
7.2.120.0030.01016.80
7.2.110.0070.01117.07
7.2.100.0100.00916.83
7.2.90.0070.01116.71
7.2.80.0070.00716.88
7.2.70.0030.01516.88
7.2.60.0070.00616.91
7.2.50.0070.00916.83
7.2.40.0090.00616.90
7.2.30.0040.00717.00
7.2.20.0070.01016.62
7.2.10.0070.01016.91
7.2.00.0060.00917.97
7.1.330.0030.01315.57
7.1.320.0030.01015.47
7.1.310.0060.00315.80
7.1.300.0040.01115.73
7.1.290.0100.00315.70
7.1.280.0030.01415.61
7.1.270.0040.01215.87
7.1.260.0030.01315.50
7.1.250.0100.00715.67
7.1.200.0030.01015.44
7.1.100.0080.00418.02
7.1.70.0030.00917.13
7.1.60.0130.01019.70
7.1.50.0120.00916.79
7.1.00.0030.07722.26
7.0.200.0000.00916.48
7.0.140.0070.07021.97
7.0.60.0070.08019.98
7.0.50.0030.04017.98
7.0.40.0200.06320.22
7.0.30.0330.07320.34
7.0.20.0230.06020.21
7.0.10.0030.09020.07
7.0.00.0030.05720.02
5.6.280.0070.07021.09
5.6.210.0230.06720.68
5.6.200.0000.05718.20
5.6.190.0070.04020.63
5.6.180.0170.04720.64
5.6.170.0230.04320.47
5.6.160.0030.04020.44
5.6.150.0030.04318.16
5.6.140.0070.08318.15
5.6.130.0030.04018.18
5.6.120.0100.07721.03
5.6.110.0100.07721.05
5.6.100.0030.04321.01
5.6.90.0100.07321.01
5.6.80.0100.06720.26
5.6.70.4570.04320.34
5.5.350.0230.07320.33
5.5.340.0100.05717.93
5.5.330.0030.04320.19
5.5.320.0200.04720.51
5.5.310.0300.05720.27
5.5.300.0130.04318.02
5.5.290.0070.05317.99
5.5.280.0030.08720.78
5.5.270.0070.05720.89
5.5.260.0130.03720.87
5.5.250.0130.07020.70
5.5.240.0200.07020.29
5.4.450.2170.05019.45
5.4.440.2030.04019.32
5.4.430.2200.04719.27
5.4.420.2000.04019.32
5.4.410.2270.04319.33
5.4.400.2370.04318.84
5.4.390.2130.03719.00
5.4.380.2400.04718.95
5.4.370.2100.03719.17
5.4.360.2130.03319.25
5.4.350.2070.03719.22
5.4.340.2070.03319.22
5.4.320.2000.04019.22
5.4.310.2100.03319.09
5.4.300.2470.04318.83
5.4.290.2170.03719.22
5.4.280.2270.04019.08
5.4.270.2000.04019.05
5.4.260.0030.04319.04
5.4.250.0030.04719.13
5.4.240.0730.05719.30
5.4.230.0430.06719.16
5.4.220.0200.03718.91
5.4.210.0200.03319.07
5.4.200.0200.03719.07
5.4.190.0130.04018.97
5.4.180.0230.05718.86
5.4.170.0200.03318.99
5.4.160.0230.03018.96
5.4.150.0130.04019.06
5.4.140.0170.03716.71
5.4.130.0100.04016.60
5.4.120.0230.04316.32
5.4.110.0170.03716.50
5.4.100.0200.04016.59
5.4.90.0130.04016.59
5.4.80.0200.06316.40
5.4.70.0270.06016.49
5.4.60.0130.04016.16
5.4.50.0100.04016.48
5.4.40.0200.05316.35
5.4.30.0230.06316.32
5.4.20.0200.04716.53
5.4.10.0230.07016.52
5.4.00.0230.04315.97
5.3.290.0270.06714.58
5.3.280.0130.06314.53
5.3.270.0170.06314.69
5.3.260.0200.07314.59
5.3.250.0130.04714.59
5.3.240.0230.07014.59
5.3.230.0170.05014.83
5.3.220.0170.04314.48
5.3.210.0200.07314.48
5.3.200.0230.07014.55
5.3.190.0170.05014.80
5.3.180.0170.04314.62
5.3.170.0270.07014.50
5.3.160.0270.04014.72
5.3.150.0200.06014.59
5.3.140.0170.04714.65
5.3.130.0230.06714.78
5.3.120.0270.07014.54
5.3.110.0270.06314.48
5.3.100.0170.05713.95
5.3.90.0230.06713.95
5.3.80.0200.06313.93
5.3.70.0130.07014.12
5.3.60.0170.07714.13
5.3.50.0270.05313.88
5.3.40.0200.07713.87
5.3.30.0270.06313.93
5.3.20.0130.05013.93
5.3.10.0230.02713.81
5.3.00.0130.04713.59
5.2.170.0230.04711.16
5.2.160.0200.03711.07
5.2.150.0200.05011.08
5.2.140.0270.04311.21
5.2.130.0230.03311.01
5.2.120.0130.03311.26
5.2.110.0200.05711.02
5.2.100.0200.03711.34
5.2.90.0170.02711.03
5.2.80.0130.03311.11
5.2.70.0130.03011.22
5.2.60.0100.03311.17
5.2.50.0170.03311.17
5.2.40.0130.02310.93
5.2.30.0100.03011.05
5.2.20.0170.03010.94
5.2.10.0130.03010.83
5.2.00.0100.03310.87
5.1.60.0100.0239.98
5.1.50.0130.02010.09
5.1.40.0100.02310.21
5.1.30.0130.02310.40
5.1.20.0130.03010.50
5.1.10.0100.02710.20
5.1.00.0300.02310.22
5.0.50.0100.0178.64
5.0.40.0030.0208.36
5.0.30.0070.0378.13
5.0.20.0030.0208.36
5.0.10.0070.0178.07
5.0.00.0030.0338.17
4.4.90.0000.0177.57
4.4.80.0000.0207.57
4.4.70.0030.0137.57
4.4.60.0070.0137.57
4.4.50.0030.0177.57
4.4.40.0070.0277.57
4.4.30.0030.0177.57
4.4.20.0030.0177.57
4.4.10.0030.0177.57
4.4.00.0070.0237.57
4.3.110.0070.0177.57
4.3.100.0070.0177.57
4.3.90.0070.0137.57
4.3.80.0070.0237.57
4.3.70.0070.0177.57
4.3.60.0030.0177.57
4.3.50.0030.0177.57
4.3.40.0100.0207.57
4.3.30.0000.0177.57
4.3.20.0030.0177.57
4.3.10.0030.0137.57
4.3.00.0030.0137.57

preferences:
43.41 ms | 401 KiB | 5 Q