3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyException extends Exception { } class Test { public function testing() { try { throw new Exception(); } catch (Exception $e) { echo 1; return 'fun1'; } finally { echo 2; return 'fun2'; } } } $foo = new Test; echo $foo->testing();

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.00616.25
8.3.50.0100.01022.04
8.3.40.0090.00618.96
8.3.30.0110.00319.07
8.3.20.0080.00020.33
8.3.10.0040.00421.75
8.3.00.0060.00319.25
8.2.180.0130.00618.54
8.2.170.0110.00422.96
8.2.160.0090.00920.52
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00519.66
8.2.110.0030.00619.21
8.2.100.0040.00718.09
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0080.00019.95
8.2.30.0050.00318.12
8.2.20.0040.00417.68
8.2.10.0040.00418.13
8.2.00.0080.00017.68
8.1.280.0100.01025.92
8.1.270.0030.00620.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.68
8.1.230.0070.00420.26
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0030.00517.36
8.1.180.0070.00018.10
8.1.170.0030.00520.27
8.1.160.0030.00622.02
8.1.150.0040.00418.82
8.1.140.0000.00717.36
8.1.130.0000.00717.74
8.1.120.0060.00317.50
8.1.110.0040.00417.49
8.1.100.0000.00717.33
8.1.90.0050.00217.47
8.1.80.0000.00717.48
8.1.70.0000.00717.33
8.1.60.0060.00317.65
8.1.50.0040.00417.42
8.1.40.0040.00417.58
8.1.30.0030.00617.51
8.1.20.0050.00317.68
8.1.10.0040.00417.53
8.1.00.0050.00317.39
8.0.300.0000.00719.15
8.0.290.0000.00816.63
8.0.280.0030.00318.49
8.0.270.0070.00017.25
8.0.260.0060.00017.36
8.0.250.0030.00616.96
8.0.240.0030.00317.07
8.0.230.0000.00716.91
8.0.220.0030.00316.93
8.0.210.0000.00716.77
8.0.200.0040.00516.94
8.0.190.0030.00317.02
8.0.180.0000.00716.82
8.0.170.0000.00716.95
8.0.160.0050.00316.79
8.0.150.0030.00416.76
8.0.140.0040.00416.81
8.0.130.0030.00313.34
8.0.120.0050.00216.93
8.0.110.0040.00416.88
8.0.100.0000.00816.95
8.0.90.0080.00016.94
8.0.80.0120.01216.94
8.0.70.0070.00016.90
8.0.60.0080.00016.94
8.0.50.0000.00816.89
8.0.30.0050.01616.90
8.0.20.0090.00917.40
8.0.10.0000.00717.06
8.0.00.0100.00816.87
7.4.330.0030.00315.15
7.4.320.0030.00316.60
7.4.300.0000.00616.39
7.4.290.0030.00316.60
7.4.280.0000.00816.49
7.4.270.0000.00716.46
7.4.260.0030.00316.63
7.4.250.0000.00816.61
7.4.240.0010.00716.59
7.4.230.0000.00716.49
7.4.220.0110.01416.47
7.4.210.0110.00316.70
7.4.200.0030.00316.55
7.4.160.0120.00316.71
7.4.150.0100.00917.40
7.4.140.0100.00717.86
7.4.130.0120.00716.55
7.4.120.0110.00616.52
7.4.110.0090.00916.49
7.4.100.0000.01716.54
7.4.90.0140.00316.60
7.4.80.0070.01019.39
7.4.70.0030.01316.49
7.4.60.0140.00316.51
7.4.50.0030.00316.46
7.4.40.0090.00916.42
7.4.30.0130.00616.31
7.4.00.0040.01215.02
7.3.330.0030.00313.36
7.3.320.0100.00513.19
7.3.310.0040.00416.32
7.3.300.0070.00016.32
7.3.290.0070.00816.33
7.3.280.0090.00916.34
7.3.270.0090.00917.40
7.3.260.0120.00616.40
7.3.250.0170.00516.31
7.3.240.0000.01616.66
7.3.230.0090.00916.39
7.3.210.0070.01016.49
7.3.200.0130.00919.39
7.3.190.0000.01516.28
7.3.180.0080.00816.40
7.3.170.0110.00916.47
7.3.160.0080.00816.40
7.2.330.0150.00316.84
7.2.320.0050.01116.68
7.2.310.0070.01016.66
7.2.300.0120.00416.51
7.2.290.0090.00916.73
7.2.00.0000.01019.39
7.1.100.0080.00317.70
7.1.70.0080.00016.97
7.1.60.0120.01219.50
7.1.50.0040.01816.36
7.1.00.0030.07722.29
7.0.200.0000.00716.86
7.0.140.0000.07721.92
7.0.60.0130.07319.92
7.0.50.0070.07017.96
7.0.40.0030.04320.39
7.0.30.0330.08020.27
7.0.20.0330.05720.30
7.0.10.0200.07020.12
7.0.00.0030.04020.09
5.6.280.0030.06720.89
5.6.210.0030.04020.62
5.6.200.0170.05718.17
5.6.190.0100.08720.61
5.6.180.0270.07020.46
5.6.170.0270.06720.52
5.6.160.0100.08020.44
5.6.150.0000.08318.23
5.6.140.0100.06318.26
5.6.130.0030.07718.17
5.6.120.0030.04321.13
5.6.110.0000.06021.05
5.6.100.0130.06021.01
5.6.90.0000.04321.00
5.6.80.0030.05320.29
5.6.70.0230.05020.37
5.5.350.0200.06020.41
5.5.340.0030.06017.95
5.5.330.0070.04320.19
5.5.320.0170.05720.44
5.5.310.0300.06720.21
5.5.300.0070.08017.99
5.5.290.0070.06017.93
5.5.280.0030.07320.88
5.5.270.0100.06720.80
5.5.260.0000.04720.78
5.5.250.0000.04320.62
5.5.240.0130.07020.24
5.4.450.0230.06719.31
5.4.440.1030.07019.70
5.4.430.0870.06319.47
5.4.420.0170.05019.57
5.4.410.0970.04719.03
5.4.400.0330.04318.76
5.4.390.0170.05718.70
5.4.380.0130.06318.77
5.4.370.0300.06718.50
5.4.360.0330.06018.78
5.4.350.0200.07318.57
5.4.340.0200.05318.80
5.4.320.0230.07718.50
5.4.310.0300.05318.55
5.4.300.0200.06718.69
5.4.290.0200.05718.45
5.4.280.0300.04718.72
5.4.270.0230.06718.54
5.4.260.0130.06718.71
5.4.250.0230.05718.76
5.4.240.0230.05718.56
5.4.230.0230.05718.60
5.4.220.0200.05718.73
5.4.210.0100.06318.79
5.4.200.0270.06316.59
5.4.190.0330.06018.58
5.4.180.0130.07318.43
5.4.170.0200.06318.68
5.4.160.0200.05718.43
5.4.150.0430.05318.74
5.4.140.0200.05716.24
5.4.130.0170.07016.29
5.4.120.0230.04316.33
5.4.110.0300.05716.45
5.4.100.0230.05016.28
5.4.90.0030.07016.46
5.4.80.0230.04716.24
5.4.70.0130.07716.21
5.4.60.0170.07016.15
5.4.50.0130.06316.25
5.4.40.0370.05316.22
5.4.30.0200.06316.29
5.4.20.0300.04716.29
5.4.10.0400.05016.14
5.4.00.0170.06015.78
5.3.290.0200.07314.69
5.3.280.0070.06714.71
5.3.270.0330.04714.64
5.3.260.0230.05314.82
5.3.250.0300.06014.80
5.3.240.0130.05714.64
5.3.230.0170.06014.76
5.3.220.0230.06314.76
5.3.210.0230.05314.76
5.3.200.0170.05314.76
5.3.190.0270.06314.73
5.3.180.0170.07314.67
5.3.170.0070.07014.59
5.3.160.0330.06014.70
5.3.150.0270.06714.62
5.3.140.0230.04714.75
5.3.130.0300.05014.76
5.3.120.0270.06314.56
5.3.110.0230.05314.69
5.3.100.0230.05314.21
5.3.90.0200.06014.07
5.3.80.0100.07714.09
5.3.70.0300.05714.14
5.3.60.0200.05714.12
5.3.50.0200.07013.98
5.3.40.0230.05014.00
5.3.30.0170.05313.89
5.3.20.0270.04013.74
5.3.10.0200.06013.80
5.3.00.0270.07013.66
5.2.170.0330.04011.26
5.2.160.0170.04711.36
5.2.150.0230.03311.21
5.2.140.0200.04011.35
5.2.130.0230.03311.21
5.2.120.0230.03311.20
5.2.110.0100.04711.25
5.2.100.0130.04311.23
5.2.90.0170.04311.24
5.2.80.0130.04711.13
5.2.70.0130.05011.21
5.2.60.0200.04011.10
5.2.50.0170.05711.14
5.2.40.0170.04311.06
5.2.30.0200.04011.11
5.2.20.0070.05011.09
5.2.10.0100.04011.08
5.2.00.0100.04310.77
5.1.60.0130.04710.12
5.1.50.0100.04310.12
5.1.40.0130.03710.09
5.1.30.0200.04710.39
5.1.20.0170.05310.37
5.1.10.0170.04710.18
5.1.00.0100.04010.22
5.0.50.0030.0338.69
5.0.40.0130.0238.53
5.0.30.0100.0538.25
5.0.20.0070.0378.39
5.0.10.0100.0378.25
5.0.00.0070.0478.34
4.4.90.0100.0205.98
4.4.80.0030.0275.96
4.4.70.0070.0235.87
4.4.60.0070.0305.91
4.4.50.0100.0305.91
4.4.40.0130.0335.93
4.4.30.0130.0205.91
4.4.20.0100.0276.07
4.4.10.0100.0275.95
4.4.00.0030.0476.04
4.3.110.0100.0275.86
4.3.100.0070.0205.81
4.3.90.0100.0205.79
4.3.80.0100.0335.84
4.3.70.0030.0305.80
4.3.60.0100.0205.81
4.3.50.0170.0135.84
4.3.40.0070.0335.88
4.3.30.0030.0274.61
4.3.20.0070.0204.54
4.3.10.0100.0174.51
4.3.00.0000.0237.27

preferences:
43.1 ms | 401 KiB | 5 Q