3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ExceptionA extends Exception {} class ExceptionB extends ExceptionA {} class ExceptionTest { public function example() { try { throw new ExceptionB(); } catch ( ExceptionA $e ) { echo 'ExceptionA was caught'; } catch ( ExceptionB $e ) { echo 'ExceptionB was caught'; } catch ( Exception $e ) { echo 'Exception was caught'; } } } (new ExceptionTest())->example();

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.01317.18
8.3.50.0140.00416.15
8.3.40.0090.00618.74
8.3.30.0120.00721.54
8.3.20.0000.00720.77
8.3.10.0040.00422.10
8.3.00.0040.00421.82
8.2.180.0060.01218.38
8.2.170.0150.00022.96
8.2.160.0120.00822.79
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00219.89
8.2.110.0030.01421.03
8.2.100.0080.00417.91
8.2.90.0000.00817.75
8.2.80.0040.00418.73
8.2.70.0050.00317.80
8.2.60.0030.00518.22
8.2.50.0090.00419.45
8.2.40.0090.00420.29
8.2.30.0020.00619.38
8.2.20.0060.00618.71
8.2.10.0050.00719.38
8.2.00.0050.00919.43
8.1.280.0140.00325.92
8.1.270.0040.00420.41
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0070.00321.11
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0130.00321.13
8.1.190.0040.00417.35
8.1.180.0080.00419.20
8.1.170.0090.00319.05
8.1.160.0070.00619.26
8.1.150.0080.00419.20
8.1.140.0070.00520.16
8.1.130.0070.00519.41
8.1.120.0070.00718.09
8.1.110.0080.00518.06
8.1.100.0080.00518.11
8.1.90.0080.00418.07
8.1.80.0080.00418.04
8.1.70.0050.00518.11
8.1.60.0100.00518.17
8.1.50.0090.00518.16
8.1.40.0110.00318.14
8.1.30.0110.00618.06
8.1.20.0150.00318.03
8.1.10.0110.00517.90
8.1.00.0140.00217.88
8.0.300.0070.00020.03
8.0.290.0000.00816.75
8.0.280.0090.00319.01
8.0.270.0090.00418.18
8.0.260.0060.00618.19
8.0.250.0060.00517.75
8.0.240.0090.00317.78
8.0.230.0100.00317.78
8.0.220.0080.00517.72
8.0.210.0070.00517.70
8.0.200.0090.00317.73
8.0.190.0110.00317.74
8.0.180.0050.00817.72
8.0.170.0090.00417.80
8.0.160.0090.00317.48
8.0.150.0100.00417.53
8.0.140.0090.00517.37
8.0.130.0080.00516.67
8.0.120.0110.00417.42
8.0.110.0110.00417.44
8.0.100.0080.00717.29
8.0.90.0100.00517.32
8.0.80.0140.00317.19
8.0.70.0140.00417.32
8.0.60.0140.00317.29
8.0.50.0140.00417.26
8.0.30.0120.00617.10
8.0.20.0110.00917.19
8.0.10.0110.00817.24
8.0.00.0100.00717.23
7.4.330.0060.00518.84
7.4.320.0090.00417.50
7.4.300.0080.00317.55
7.4.290.0060.00517.49
7.4.280.0100.00417.23
7.4.270.0140.00317.11
7.4.260.0110.00416.40
7.4.250.0090.00517.07
7.4.240.0050.00717.00
7.4.230.0100.00317.00
7.4.220.0070.00316.87
7.4.210.0110.00516.86
7.4.200.0080.00716.98
7.4.190.0110.00417.03
7.4.180.0090.00617.07
7.4.160.0110.00716.85
7.4.150.0110.00616.73
7.4.140.0090.00716.71
7.4.130.0110.00616.70
7.4.120.0110.00716.69
7.4.110.0120.00716.68
7.4.100.0100.00816.77
7.4.90.0110.00616.69
7.4.80.0100.00916.92
7.4.70.0110.00916.63
7.4.60.0110.00716.58
7.4.50.0100.00716.56
7.4.40.0130.00616.61
7.4.30.0110.00616.62
7.4.20.0110.00716.63
7.4.10.0120.00716.65
7.4.00.0100.00717.52
7.3.330.0090.00616.92
7.3.320.0080.00716.36
7.3.310.0140.00116.96
7.3.300.0090.00616.94
7.3.290.0090.00516.84
7.3.280.0100.00616.77
7.3.270.0080.00816.65
7.3.260.0090.00816.62
7.3.250.0110.00516.62
7.3.240.0100.00716.66
7.3.230.0100.00816.58
7.3.220.0100.00716.63
7.3.210.0100.00716.60
7.3.200.0100.00716.61
7.3.190.0110.00716.61
7.3.180.0110.00716.62
7.3.170.0130.00516.59
7.3.160.0120.00516.63
7.3.150.0120.00616.62
7.3.140.0100.00716.59
7.3.130.0110.00516.61
7.3.120.0090.00816.60
7.3.110.0110.00816.50
7.3.100.0110.00716.49
7.3.90.0100.00716.78
7.3.80.0100.00716.53
7.3.70.0110.00616.58
7.3.60.0110.00716.67
7.3.50.0100.00816.63
7.3.40.0110.00616.66
7.3.30.0100.00716.64
7.3.20.0110.00716.79
7.3.10.0110.00716.74
7.3.00.0120.00616.76
7.2.340.0180.00716.57
7.2.330.0180.00716.58
7.2.320.0120.01116.61
7.2.310.0150.00716.57
7.2.300.0140.00816.62
7.2.290.0130.00816.62
7.2.280.0140.00916.58
7.2.270.0140.00716.56
7.2.260.0150.00716.57
7.2.250.0180.00716.59
7.2.240.0150.00816.57
7.2.230.0150.00716.61
7.2.220.0140.00816.60
7.2.210.0140.00816.59
7.2.200.0160.00716.73
7.2.190.0150.00716.71
7.2.180.0120.01016.72
7.2.170.0110.00916.81
7.2.160.0140.00916.78
7.2.150.0180.00616.99
7.2.140.0140.00916.99
7.2.130.0150.00917.07
7.2.120.0160.00617.01
7.2.110.0160.00716.93
7.2.100.0140.00717.00
7.2.90.0190.00716.96
7.2.80.0160.00816.95
7.2.70.0190.00816.94
7.2.60.0180.00916.99
7.2.50.0150.01016.96
7.2.40.0160.00916.99
7.2.30.0190.00817.01
7.2.20.0140.01016.96
7.2.10.0160.01216.94
7.2.00.0160.00816.95

preferences:
51.88 ms | 400 KiB | 5 Q