3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface MyException { } class ImplementingException1 implements MyException { } class ImplementingException2 implements MyException { } function test($var) { if ($var) throw new ImplementingException1; throw new ImplementingException2; } try { test(true); } catch (MyException $e) { 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)
8.3.60.0140.00718.43
8.3.50.0140.01121.28
8.3.40.0070.00718.93
8.3.30.0040.01118.63
8.3.20.0090.00022.13
8.3.10.0000.00823.71
8.3.00.0000.00922.27
8.2.180.0100.00618.18
8.2.170.0040.01222.96
8.2.160.0060.00920.35
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0030.00617.75
8.2.110.0070.00422.13
8.2.100.0040.00817.93
8.2.90.0040.00419.34
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0050.00517.93
8.2.50.0030.00618.07
8.2.40.0060.00321.24
8.2.30.0030.00520.51
8.2.20.0040.00417.77
8.2.10.0000.00817.94
8.2.00.0060.00317.93
8.1.280.0090.00625.92
8.1.270.0100.00623.67
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0050.00522.44
8.1.230.0080.00417.66
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0080.00018.22
8.1.160.0040.00421.89
8.1.150.0040.00418.77
8.1.140.0050.00317.50
8.1.130.0050.00217.70
8.1.120.0000.00817.39
8.1.110.0070.00017.36
8.1.100.0040.00417.39
8.1.90.0040.00417.48
8.1.80.0040.00417.53
8.1.70.0000.00717.46
8.1.60.0040.00417.66
8.1.50.0000.00817.52
8.1.40.0080.00017.54
8.1.30.0000.00917.73
8.1.20.0030.00517.62
8.1.10.0000.00717.61
8.1.00.0050.00317.37
8.0.300.0080.00018.78
8.0.290.0000.00816.63
8.0.280.0000.00718.46
8.0.270.0000.00817.26
8.0.260.0030.00317.22
8.0.250.0070.00017.00
8.0.240.0000.00716.94
8.0.230.0070.00017.06
8.0.220.0000.00716.98
8.0.210.0040.00416.95
8.0.200.0030.00317.04
8.0.190.0050.00516.96
8.0.180.0040.00416.88
8.0.170.0040.00416.89
8.0.160.0030.00517.09
8.0.150.0020.00516.89
8.0.140.0070.00016.97
8.0.130.0000.00513.37
8.0.120.0030.00516.90
8.0.110.0050.00316.99
8.0.100.0030.00517.04
8.0.90.0020.00516.78
8.0.80.0130.00716.93
8.0.70.0000.00716.96
8.0.60.0050.00316.97
8.0.50.0040.00416.82
8.0.30.0080.01017.12
8.0.20.0180.00117.40
8.0.10.0050.00216.93
8.0.00.0070.01116.90
7.4.330.0050.00015.08
7.4.320.0000.00616.53
7.4.300.0000.00616.43
7.4.290.0070.00016.62
7.4.280.0040.00416.50
7.4.270.0070.00016.50
7.4.260.0000.00716.37
7.4.250.0040.00416.52
7.4.240.0040.00416.65
7.4.230.0040.00416.61
7.4.220.0090.00616.55
7.4.210.0120.00616.53
7.4.200.0000.00816.68
7.4.160.0150.00016.63
7.4.150.0030.01417.40
7.4.140.0150.00617.86
7.4.130.0060.01316.57
7.4.120.0080.01016.56
7.4.110.0060.01016.70
7.4.100.0120.00616.46
7.4.90.0120.00616.41
7.4.80.0130.00319.39
7.4.70.0130.01416.66
7.4.60.0080.00816.67
7.4.50.0030.00616.24
7.4.40.0070.01116.54
7.4.30.0090.01316.54
7.4.00.0070.01014.87
7.3.330.0000.00513.31
7.3.320.0050.00013.39
7.3.310.0000.00716.34
7.3.300.0000.00716.18
7.3.290.0090.00916.31
7.3.280.0050.01216.31
7.3.270.0160.00017.40
7.3.260.0110.01116.35
7.3.250.0110.00516.45
7.3.240.0090.00916.32
7.3.230.0110.00516.39
7.3.210.0070.01316.38
7.3.200.0080.00816.52
7.3.190.0080.00816.43
7.3.180.0070.01416.65
7.3.170.0060.01216.44
7.3.160.0170.00316.52
7.2.330.0120.00616.73
7.2.320.0110.00816.51
7.2.310.0080.00816.42
7.2.300.0120.00416.62
7.2.290.0070.01016.78
7.2.60.0100.01016.43
7.2.00.0040.00719.30
7.1.200.0030.00815.89
7.1.100.0080.00418.24
7.1.70.0070.00717.04
7.1.60.0160.00919.11
7.1.50.0130.01116.94
7.1.00.0000.08022.28
7.0.200.0100.00416.85
7.0.60.0170.06720.01
7.0.50.0100.05017.96
7.0.40.0070.06720.05
7.0.30.0200.05720.06
7.0.20.0300.04720.16
7.0.10.0130.08020.09
7.0.00.0170.07020.20
5.6.280.0030.07320.86
5.6.210.0130.07320.50
5.6.200.0030.06718.17
5.6.190.0170.07320.55
5.6.180.0470.07720.41
5.6.170.0200.03720.55
5.6.160.0230.05020.50
5.6.150.0200.06318.18
5.6.140.0070.03718.27
5.6.130.0130.05018.19
5.6.120.0070.03720.98
5.6.110.0030.08320.96
5.6.100.0230.05321.09
5.6.90.0070.09021.00
5.6.80.0100.07020.48
5.5.350.0330.07020.43
5.5.340.0130.07317.99
5.5.330.0070.06320.37
5.5.320.0130.08020.24
5.5.310.0270.05720.27
5.5.300.0030.08318.04
5.5.290.0030.06317.94
5.5.280.0100.04020.80
5.5.270.0070.04320.86
5.5.260.0170.07720.79
5.5.250.0030.04020.58
5.5.240.0030.08020.34
5.4.450.1030.04019.63
5.4.440.0700.05319.63
5.4.430.0870.05719.16
5.4.420.0830.05719.41
5.4.410.0730.04719.43
5.4.400.0700.05319.06
5.4.390.0700.05319.24
5.4.380.0730.05019.21
5.4.370.0870.05018.84
5.4.360.1070.05719.06
5.4.350.0900.05019.06
5.4.340.0830.03719.08
5.4.320.0930.07319.06
5.4.310.0800.05318.91
5.4.300.0930.04719.23
5.4.290.0800.05718.83
5.4.280.0800.05719.07
5.4.270.0830.05319.30
5.4.260.0970.05319.21
5.4.250.0830.07019.29
5.4.240.0930.05719.20
5.4.230.0830.04719.05
5.4.220.0900.05019.03
5.4.210.0870.05019.07
5.4.200.0830.05319.10
5.4.190.0930.04718.82
5.4.180.0830.05019.09
5.4.170.0700.06318.82
5.4.160.0870.05018.99
5.4.150.0770.04718.82
5.4.140.0800.06016.60
5.4.130.0730.04716.46
5.4.120.1070.06716.47
5.4.110.0870.04716.43
5.4.100.0900.04716.52
5.4.90.0870.04716.44
5.4.80.0800.05316.51
5.4.70.0230.07016.39
5.4.60.0070.05016.53
5.4.50.0230.04016.51
5.4.40.0170.07316.22
5.4.30.0200.03716.53
5.4.20.0330.05316.57
5.4.10.0270.04316.41

preferences:
58.71 ms | 401 KiB | 5 Q