3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { try { throw new Exception("ex1"); } finally { try { throw new Exception("ex2"); } catch (Exception $e) { echo "caught exception in finally block: $e ....\n"; } echo "end of finally.\n"; } } try { foo(); echo "this should not get executed.\n"; } catch (Exception $e) { echo "caught exception from foo() call: $e ....\n"; }

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.40.0110.00418.84
8.3.30.0140.00018.79
8.3.20.0090.00620.05
8.3.10.0040.00423.44
8.3.00.0040.00422.28
8.2.170.0070.00722.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00317.47
8.2.110.0030.00619.02
8.2.100.0090.00317.63
8.2.90.0000.00818.92
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0040.00421.19
8.2.30.0030.00617.98
8.2.20.0000.00717.82
8.2.10.0030.00618.04
8.2.00.0030.00517.93
8.1.270.0000.00820.25
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00024.02
8.1.230.0110.00017.42
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0070.00317.11
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0000.00822.07
8.1.150.0060.00318.89
8.1.140.0030.00517.46
8.1.130.0000.00820.02
8.1.120.0000.00817.39
8.1.110.0050.00317.41
8.1.100.0070.00017.34
8.1.90.0030.00417.49
8.1.80.0040.00417.50
8.1.70.0030.00517.46
8.1.60.0070.00017.60
8.1.50.0050.00317.45
8.1.40.0030.00617.58
8.1.30.0080.00017.57
8.1.20.0060.00317.53
8.1.10.0000.00717.45
8.1.00.0000.00817.42
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0040.00418.46
8.0.270.0030.00317.25
8.0.260.0040.00420.21
8.0.250.0040.00417.02
8.0.240.0040.00416.93
8.0.230.0000.00716.98
8.0.220.0050.00216.87
8.0.210.0000.00716.94
8.0.200.0030.00316.86
8.0.190.0030.00616.99
8.0.180.0040.00416.97
8.0.170.0000.00816.82
8.0.160.0000.00816.85
8.0.150.0040.00416.88
8.0.140.0050.00316.89
8.0.130.0000.00613.46
8.0.120.0060.00316.94
8.0.110.0050.00216.91
8.0.100.0000.00716.86
8.0.90.0000.00816.84
8.0.80.0090.00616.92
8.0.70.0070.00016.78
8.0.60.0070.00016.99
8.0.50.0040.00416.84
8.0.30.0100.00917.01
8.0.20.0120.00917.40
8.0.10.0040.00417.17
8.0.00.0100.00716.94
7.4.330.0000.00615.15
7.4.320.0000.00716.61
7.4.300.0030.00316.43
7.4.290.0000.00716.59
7.4.280.0030.00516.62
7.4.270.0030.00316.63
7.4.260.0000.00816.50
7.4.250.0000.00816.48
7.4.240.0020.00416.56
7.4.230.0030.00316.66
7.4.220.0140.00816.52
7.4.210.0110.00816.60
7.4.200.0030.00316.40
7.4.160.0130.00316.58
7.4.150.0150.00617.40
7.4.140.0160.00717.86
7.4.130.0130.00416.58
7.4.120.0090.00816.53
7.4.110.0110.00616.54
7.4.100.0100.00716.61
7.4.90.0070.01016.56
7.4.80.0180.00319.39
7.4.70.0080.00816.40
7.4.60.0040.01316.59
7.4.50.0040.00416.54
7.4.40.0120.00616.42
7.4.30.0060.01116.64
7.4.00.0040.01114.81
7.3.330.0000.00513.31
7.3.320.0000.00613.36
7.3.310.0030.00316.26
7.3.300.0030.00316.22
7.3.290.0030.00316.38
7.3.280.0030.01316.36
7.3.270.0090.00917.40
7.3.260.0160.00616.34
7.3.250.0120.00616.40
7.3.240.0100.00716.61
7.3.230.0130.00316.43
7.3.210.0110.00516.45
7.3.200.0090.00919.39
7.3.190.0070.01016.52
7.3.180.0090.00616.41
7.3.170.0030.01916.33
7.3.160.0080.00816.46
7.2.330.0110.01216.75
7.2.320.0090.00916.67
7.2.310.0110.01116.66
7.2.300.0080.00816.61
7.2.290.0110.01216.71
7.2.60.0060.00916.63
7.2.00.0080.00419.28
7.1.200.0070.00715.84
7.1.100.0130.00018.06
7.1.70.0040.00417.22
7.1.60.0100.01420.03
7.1.50.0130.00716.72
7.1.00.0030.07722.31
7.0.200.0060.00614.97
7.0.60.0130.07720.04
7.0.50.0000.07017.83
7.0.40.0070.08720.27
7.0.30.0230.04020.30
7.0.20.0170.08720.09
7.0.10.0030.04320.09
7.0.00.0030.09320.25
5.6.280.0030.05321.10
5.6.210.0070.07320.51
5.6.200.0070.07718.18
5.6.190.0200.07320.55
5.6.180.0270.06020.68
5.6.170.0270.06020.51
5.6.160.0070.08720.39
5.6.150.0030.03718.21
5.6.140.0030.05018.18
5.6.130.0070.08318.16
5.6.120.0030.05321.10
5.6.110.0070.08321.01
5.6.100.0100.08020.96
5.6.90.0130.06320.98
5.6.80.0030.04320.36
5.6.70.4570.03720.54
5.5.350.0400.06720.30
5.5.340.0030.08017.92
5.5.330.0100.04320.28
5.5.320.0170.04320.35
5.5.310.0330.07720.37
5.5.300.0130.07717.95
5.5.290.0200.04318.05
5.5.280.0030.04020.77
5.5.270.0070.05020.86
5.5.260.0170.04020.84
5.5.250.0030.08320.49
5.5.240.0230.07020.15
5.4.450.0670.06019.29
5.4.440.0830.05019.38
5.4.430.0770.05019.18
5.4.420.0730.04719.61
5.4.410.0630.05719.42
5.4.400.0730.04318.96
5.4.390.0670.05019.29
5.4.380.0530.06019.28
5.4.370.0630.05318.84
5.4.360.0800.05319.06
5.4.350.0600.05719.29
5.4.340.0870.05019.10
5.4.320.0730.05719.28
5.4.310.0670.06018.83
5.4.300.0830.04319.10
5.4.290.0670.05319.28
5.4.280.0770.04319.25
5.4.270.0730.06319.12
5.4.260.0700.04719.28
5.4.250.0870.04319.05
5.4.240.0730.05719.10
5.4.230.0770.05318.95
5.4.220.0770.05319.28
5.4.210.0770.05019.14
5.4.200.0730.05016.84
5.4.190.0800.04719.13
5.4.180.0730.05319.18
5.4.170.0770.06319.17
5.4.160.0600.05719.00
5.4.150.0730.04719.33
5.4.140.0600.05716.54
5.4.130.0730.04016.32
5.4.120.0770.04716.31
5.4.110.0800.04016.30
5.4.100.0730.05016.39
5.4.90.0630.05716.32
5.4.80.0670.05316.33
5.4.70.0630.04716.54
5.4.60.0070.06716.38
5.4.50.0030.07316.53
5.4.40.0230.06316.16
5.4.30.0200.04316.34
5.4.20.0300.05016.34

preferences:
69.28 ms | 400 KiB | 5 Q