3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { class MyException extends Exception {}; try { throw new MyException; } catch (Exception $e) { echo "1:"; throw $e; }c atch (MyException $e) { echo "2:"; throw $e; }} catch (Exception $e) { echo get_class($e); }?>

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.4.210.0080.04312.38
5.4.200.0190.05412.38
5.4.190.0090.04312.38
5.4.180.0100.03812.38
5.4.170.0100.03912.39
5.4.160.0080.04012.38
5.4.150.0090.04012.38
5.4.140.0100.04012.07
5.4.130.0110.04012.05
5.4.120.0160.05412.01
5.4.110.0110.03812.01
5.4.100.0140.04412.01
5.4.90.0080.04012.01
5.4.80.0070.04112.01
5.4.70.0090.03912.01
5.4.60.0100.03712.00
5.4.50.0120.03612.01
5.4.40.0080.03812.00
5.4.30.0090.04111.99
5.4.20.0120.04811.98
5.4.10.0070.03911.99
5.4.00.0090.03811.49
5.3.270.0080.04412.72
5.3.260.0090.04212.72
5.3.250.0100.04212.72
5.3.240.0100.03912.72
5.3.230.0100.04312.70
5.3.220.0110.04112.68
5.3.210.0100.04112.68
5.3.200.0110.04712.68
5.3.190.0120.04112.67
5.3.180.0100.04112.67
5.3.170.0100.04112.67
5.3.160.0100.04112.67
5.3.150.0100.04412.68
5.3.140.0140.04712.66
5.3.130.0110.05012.66
5.3.120.0100.04312.66
5.3.110.0120.04212.66
5.3.100.0110.04112.12
5.3.90.0110.04912.09
5.3.80.0090.04112.08
5.3.70.0080.04112.08
5.3.60.0080.04012.07
5.3.50.0130.04712.01
5.3.40.0120.03712.01
5.3.30.0080.04011.96
5.3.20.0100.03911.74
5.3.10.0100.04111.70
5.3.00.0140.05211.69

preferences:
141.39 ms | 1394 KiB | 7 Q