3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class SkipTryCatchFinallyDifferentType { public function run() { try { return 1; } catch (\RuntimeException $e) { return 2; } finally { return "A"; } } } $a = new SkipTryCatchFinallyDifferentType(); var_dump($a->run());

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.5.70.0030.00516.58
8.5.60.0050.00216.70
8.5.50.0110.00616.61
8.5.30.0080.00918.19
8.5.20.0110.01020.16
8.5.10.0100.00716.69
8.5.00.0110.01220.04
8.4.220.0070.00223.89
8.4.210.0050.00419.40
8.4.180.0160.00719.54
8.4.170.0120.01023.86
8.4.160.0110.01120.53
8.4.150.0080.00416.82
8.4.140.0120.00917.68
8.4.130.0100.01017.95
8.4.120.0110.01122.35
8.4.110.0110.00917.98
8.4.100.0140.00917.55
8.4.90.0110.00817.73
8.4.80.0040.00517.86
8.3.310.0100.01218.34
8.3.300.0150.00718.18
8.3.290.0110.00920.66
8.3.280.0140.00818.26
8.3.270.0120.00816.57
8.3.260.0120.00616.42
8.3.250.0100.00818.72
8.3.240.0100.00916.74
8.3.230.0030.00516.57
8.3.220.0060.00216.63
8.3.180.0060.00216.56
8.3.50.0050.00316.51
8.2.310.0070.01118.02
8.2.300.0100.00922.06
8.2.290.0130.00616.72
8.1.340.0150.00417.70

preferences:
61.88 ms | 631 KiB | 5 Q