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 be 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)
5.6.130.0170.03018.14
5.6.120.0170.07321.01
5.6.110.0070.03720.98
5.6.100.0100.04320.98
5.6.90.0070.08021.08
5.6.80.0100.03720.39
5.5.290.0000.06318.00
5.5.280.0070.06720.69
5.5.270.0100.04720.73
5.5.260.0170.07720.87
5.5.250.0100.07720.69
5.5.240.0000.08020.11
5.4.450.0730.06719.43
5.4.440.0770.05719.61
5.4.430.0800.04319.28
5.4.420.0570.06319.15
5.4.410.0700.05319.42
5.4.400.0800.05019.38
5.4.390.0700.05719.37
5.4.380.0700.05319.01
5.4.370.0830.05319.13
5.4.360.0730.06319.10
5.4.350.0770.04319.26
5.4.340.0700.06019.26
5.4.320.0830.05319.23
5.4.310.0570.06319.05
5.4.300.0600.05018.85
5.4.290.0200.04719.25
5.4.280.0400.05719.23
5.4.270.0370.05719.25
5.4.260.0900.06018.96
5.4.250.0800.05019.25
5.4.240.0830.04319.24
5.4.230.0770.06019.28
5.4.220.0700.06019.13
5.4.210.0800.05319.18
5.4.200.0830.04316.91
5.4.190.0830.04719.10
5.4.180.0830.07318.97
5.4.170.1100.05019.13
5.4.160.0700.06019.24
5.4.150.0800.06319.07
5.4.140.0700.05716.51
5.4.130.0770.07016.32
5.4.120.0830.05316.55
5.4.110.0770.04016.76
5.4.100.0870.06016.38
5.4.90.0770.05016.51
5.4.80.0870.04716.39
5.4.70.0700.04716.54
5.4.60.0030.04016.17
5.4.50.0030.07016.43
5.4.40.0300.06016.32
5.4.30.0330.02316.34
5.4.20.0300.05716.30

preferences:
142.41 ms | 1394 KiB | 7 Q