3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface InterfaceA {} class ExceptionA extends Exception implements InterfaceA {} function throwException() { throw new ExceptionA(); } try { throwException(); } catch (InterfaceA $error) { printf('Caught %s', get_class($error)); }

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.110.0090.00016.58
8.3.100.0070.00716.41
8.3.90.0040.00426.77
8.3.80.0060.00316.50
8.3.70.0100.01016.63
8.3.60.0080.00818.43
8.3.50.0150.00616.20
8.3.40.0070.00718.66
8.3.30.0140.00018.67
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.230.0060.00320.94
8.2.220.0040.00424.06
8.2.210.0140.00426.77
8.2.200.0030.00616.50
8.2.190.0070.01416.58
8.2.180.0110.00325.92
8.2.170.0110.00719.11
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00326.35
8.2.110.0040.00420.53
8.2.100.0060.00618.02
8.2.90.0030.00519.09
8.2.80.0040.00418.22
8.2.70.0060.00317.63
8.2.60.0060.00317.93
8.2.50.0060.00318.05
8.2.40.0030.00620.07
8.2.30.0000.00917.93
8.2.20.0000.00717.94
8.2.10.0030.00519.28
8.2.00.0040.00419.12
8.1.290.0040.00430.84
8.1.280.0110.00725.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01019.38
8.1.230.0060.00620.85
8.1.220.0030.00517.79
8.1.210.0040.00419.13
8.1.200.0060.00317.35
8.1.190.0030.00617.25
8.1.180.0050.00319.01
8.1.170.0030.00518.66
8.1.160.0000.00719.06
8.1.150.0000.00818.79
8.1.140.0040.00418.88
8.1.130.0030.00320.13
8.1.120.0000.00817.43
8.1.110.0050.00317.42
8.1.100.0000.00717.33
8.1.90.0000.00917.27
8.1.80.0060.00317.37
8.1.70.0030.00317.48
8.1.60.0000.00717.52
8.1.50.0050.00317.56
8.1.40.0040.00717.47
8.1.30.0050.00317.55
8.1.20.0000.00717.70
8.1.10.0040.00417.63
8.1.00.0000.00817.41
8.0.300.0050.00318.77
8.0.290.0070.00316.63
8.0.280.0030.00318.43
8.0.270.0050.00518.12
8.0.260.0030.00318.57
8.0.250.0070.00017.04
8.0.240.0030.00317.00
8.0.230.0000.00716.98
8.0.220.0000.00716.95
8.0.210.0040.00416.89
8.0.200.0070.00016.99
8.0.190.0060.00316.89
8.0.180.0000.00716.85
8.0.170.0030.00616.97
8.0.160.0000.00716.95
8.0.150.0000.00716.89
8.0.140.0040.00416.92
8.0.130.0000.00613.29
8.0.120.0000.00716.88
8.0.110.0050.00317.01
8.0.100.0070.00016.95
8.0.90.0070.00016.97
8.0.80.0080.00916.88
8.0.70.0030.00416.92
8.0.60.0040.00416.98
8.0.50.0040.00416.77
8.0.30.0100.01016.90
8.0.20.0250.00916.95
8.0.10.0200.00717.05
8.0.00.0130.01417.06
7.4.330.0000.00415.55
7.4.320.0000.00616.49
7.4.300.0030.00316.51
7.4.290.0070.00016.42
7.4.280.0030.00516.42
7.4.270.0070.00016.48
7.4.260.0030.00313.28
7.4.250.0040.00416.47
7.4.240.0050.00216.44
7.4.230.0040.00416.65
7.4.220.0020.00516.60
7.4.210.0120.00616.42
7.4.200.0030.00316.29
7.4.160.0190.00816.61
7.4.150.0170.01316.49
7.4.140.0190.00716.46
7.4.130.0180.00816.45
7.4.120.0170.00816.48
7.4.110.0140.01316.53
7.4.100.0160.00916.52
7.4.90.0160.00716.43
7.4.80.0160.01116.40
7.4.70.0150.00816.37
7.4.60.0140.01016.42
7.4.50.0140.00816.27
7.4.40.0160.00716.37
7.4.30.0160.00816.36
7.4.20.0250.00216.34
7.4.10.0150.01016.29
7.4.00.0150.00616.47
7.3.330.0040.00416.25
7.3.320.0030.00313.15
7.3.310.0070.00016.20
7.3.300.0000.00816.38
7.3.290.0090.00616.35
7.3.280.0200.00616.40
7.3.270.0190.01016.33
7.3.260.0140.01116.35
7.3.250.0200.00716.34
7.3.240.0150.00716.34
7.3.230.0290.00916.36
7.3.220.0190.00416.27
7.3.210.0200.00416.32
7.3.200.0140.01116.22
7.3.190.0120.01116.26
7.3.180.0130.00916.27
7.3.170.0170.00916.35
7.3.160.0110.01416.31
7.3.150.0440.00516.20
7.3.140.0240.00516.26
7.3.130.0180.01016.27
7.3.120.0190.01216.23
7.3.110.0230.00516.22
7.3.100.0140.01216.28
7.3.90.0150.01016.52
7.3.80.0190.00816.21
7.3.70.0180.01316.42
7.3.60.0590.00916.43
7.3.50.0210.00616.43
7.3.40.0260.00416.43
7.3.30.0330.00516.48
7.3.20.0560.00316.43
7.3.10.0190.01016.43
7.3.00.0180.00816.42

preferences:
29.16 ms | 403 KiB | 5 Q