3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo "1 try\n"; try { echo "2 try\n"; // 必ず try 中で例外が投げられる throw new \Exception("in try exception"); } catch(\Exception $e) { echo "3 catch\n"; echo " ". $e->getMessage()."\n"; throw $e;// ここで try 由来の例外を更に上に投げる } finally { echo "4 finally\n"; // finally 中でも例外を投げる throw new \Exception("in finally exception"); } } catch(\Exception $e) { // ↑の投げられた例外をキャッチ echo "5 catch\n"; echo " ". $e->getMessage()."\n"; } finally { echo "6 finally\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.140.0040.00418.54
8.3.130.0100.00718.69
8.3.120.0000.00919.01
8.3.110.0090.00020.94
8.3.100.0030.00618.45
8.3.90.0050.00326.77
8.3.80.0040.00716.63
8.3.70.0120.00916.62
8.3.60.0110.00416.63
8.3.50.0120.00319.80
8.3.40.0130.00323.68
8.3.30.0120.00318.67
8.3.20.0000.00824.18
8.3.10.0000.00724.66
8.3.00.0050.00326.16
8.2.250.0140.00422.33
8.2.240.0030.00617.30
8.2.230.0000.00922.58
8.2.220.0090.00024.06
8.2.210.0000.00726.77
8.2.200.0030.00616.75
8.2.190.0120.00316.75
8.2.180.0140.00025.92
8.2.170.0120.00319.09
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00020.90
8.2.110.0060.00322.16
8.2.100.0030.00917.75
8.2.90.0050.00317.88
8.2.80.0040.00418.78
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0030.00520.07
8.2.30.0000.00718.03
8.2.20.0040.00420.34
8.2.10.0080.00017.79
8.2.00.0030.00719.15
8.1.300.0090.00918.32
8.1.290.0030.00730.84
8.1.280.0140.00025.92
8.1.270.0070.00023.99
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.88
8.1.230.0000.01119.00
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0050.00317.36
8.1.180.0040.00418.10
8.1.170.0080.00018.51
8.1.160.0060.00318.92
8.1.150.0040.00418.66
8.1.140.0000.00717.47
8.1.130.0080.00018.92
8.1.120.0040.00417.48
8.1.110.0000.00717.49
8.1.100.0040.00417.48
8.1.90.0000.00717.49
8.1.80.0030.00717.42
8.1.70.0040.00417.50
8.1.60.0050.00517.55
8.1.50.0030.00517.47
8.1.40.0040.00417.55
8.1.30.0000.00817.65
8.1.20.0020.00517.57
8.1.10.0030.00517.56
8.1.00.0110.00717.55
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0040.00420.29
8.0.270.0100.00018.02
8.0.260.0030.00318.39
8.0.250.0030.00317.04
8.0.240.0000.00717.03
8.0.230.0040.00417.02
8.0.220.0000.00817.04
8.0.210.0070.00017.03
8.0.200.0040.00417.06
8.0.190.0040.00416.88
8.0.180.0000.00716.96
8.0.170.0090.00017.06
8.0.160.0040.00416.86
8.0.150.0040.00416.92
8.0.140.0180.00016.91
8.0.130.0120.00816.79
8.0.120.0190.00016.86
8.0.110.0150.00517.00
8.0.100.0120.00616.98
8.0.90.0160.00516.94
8.0.80.0190.00416.80
8.0.70.0130.00716.89
8.0.60.0170.00416.97
8.0.50.0230.00316.89
8.0.30.0120.00516.77
8.0.20.0070.00816.80
8.0.10.0080.00416.82
8.0.00.0050.00517.07
7.4.330.0000.00515.55
7.4.320.0040.00416.46
7.4.300.0030.00316.53
7.4.290.0050.00316.58
7.4.280.0060.00316.64
7.4.270.0000.00816.66
7.4.260.0180.00016.56
7.4.250.0090.00516.41
7.4.240.0140.00516.34
7.4.230.0060.00316.52
7.4.220.0080.00016.58
7.4.210.0050.00516.59
7.4.200.0060.00616.52
7.4.190.0050.00616.63
7.4.180.0070.00316.51
7.4.160.0060.00516.05
7.4.150.0100.00016.50
7.4.140.0080.00016.33
7.4.130.0090.00316.16
7.4.120.0120.00016.35
7.4.110.0090.00216.02
7.4.100.0100.00316.41
7.4.90.0040.00816.35
7.4.80.0080.00416.40
7.4.70.0140.00316.44
7.4.60.0070.00716.20
7.4.50.0090.00415.95
7.4.40.0070.00816.21
7.4.30.0140.00016.24
7.4.20.0060.00616.38
7.4.10.0130.00316.16
7.4.00.0070.00616.01
7.3.330.0130.00015.85
7.3.320.0170.00016.37
7.3.310.0240.00016.22
7.3.300.0190.00516.38
7.3.290.0090.00916.45
7.3.280.0100.01016.23
7.3.270.0140.00615.92
7.3.260.0090.00515.50
7.3.250.0110.00516.49
7.3.240.0130.00316.43
7.3.230.0170.00015.87
7.3.220.0150.00316.45
7.3.210.0120.00416.10
7.3.200.0100.00516.27
7.3.190.0110.00616.23
7.3.180.0090.00516.25
7.3.170.0120.00516.24
7.3.160.0180.00015.84
7.3.150.0170.00316.30
7.3.140.0080.00616.03
7.3.130.0100.00316.38

preferences:
34.49 ms | 403 KiB | 5 Q