3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyTrueException extends \Exception { } class MyFalseException extends \Exception { } function doSomething($var) { if ($var) { throw new MyTrueException(); } throw new MyFalseException(); } try { doSomething(true); } catch (MyTrueException) { echo 'got true'; } catch (MyFalseException) { echo 'got false'; }

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.60.0070.01118.68
8.3.50.0130.00521.20
8.3.40.0110.01118.97
8.3.30.0120.00320.20
8.3.20.0040.00420.34
8.3.10.0040.00422.09
8.3.00.0040.00422.45
8.2.180.0100.00718.41
8.2.170.0130.00322.96
8.2.160.0100.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00726.16
8.2.120.0080.00019.77
8.2.110.0060.00322.19
8.2.100.0070.00318.90
8.1.280.0080.00825.92
8.1.270.0030.00620.41
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0030.00718.47
8.1.230.0050.00518.36
5.4.250.2430.03719.10
5.4.240.2130.03019.21
5.4.230.2400.04319.07
5.4.220.2100.04018.96
5.4.210.2000.04019.22
5.4.200.2230.04018.85
5.4.190.2000.04019.23
5.4.180.2130.04019.13
5.4.170.2000.04019.08
5.4.160.2330.04718.93
5.4.150.2100.03319.13
5.4.140.2030.03716.71
5.4.130.2200.03716.44
5.4.120.2230.03716.56
5.4.110.2230.03016.60
5.4.100.2200.03316.59
5.4.90.2000.03316.61
5.4.80.2230.03716.59
5.4.70.1970.03716.32
5.4.60.2000.03016.27
5.4.50.1900.04016.52
5.4.40.2000.03716.43
5.4.30.2300.04016.51
5.4.20.2230.04016.34
5.4.10.2230.03716.33
5.4.00.2270.03315.78
5.3.280.2170.04314.57
5.3.270.2200.03314.70
5.3.260.2270.03014.73
5.3.250.2030.03014.62
5.3.240.2200.04314.52
5.3.230.1970.03014.69
5.3.220.2130.03314.58
5.3.210.1930.03714.50
5.3.200.2230.03014.55
5.3.190.1630.04014.48
5.3.180.1900.04014.66
5.3.170.1970.04014.66
5.3.160.1930.04014.63
5.3.150.1970.03714.55
5.3.140.2300.04714.64
5.3.130.2200.04314.53
5.3.120.2200.04314.57
5.3.110.2130.04314.46
5.3.100.2130.04313.91
5.3.90.2270.04014.12
5.3.80.2030.02714.07
5.3.70.2200.04314.09
5.3.60.2030.04014.16
5.3.50.2170.04014.00
5.3.40.2270.03714.01
5.3.30.2030.03314.14
5.3.20.2330.03713.72
5.3.10.2100.03013.60
5.3.00.2000.03713.56

preferences:
38.14 ms | 401 KiB | 5 Q