3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExceptionThatExists extends Exception { // } try { throw new ExceptionThatExists(); } catch (NonExistentException $exception) { var_dump('Caught NonExistentException'); } catch (ExceptionThatExists $exception) { var_dump('Caught ExceptionThatExists'); }

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.120.0130.00320.75
8.3.110.0030.00616.75
8.3.100.0000.00824.06
8.3.90.0100.00326.77
8.3.80.0090.00316.63
8.3.70.0070.00716.63
8.3.60.0120.00318.65
8.3.50.0080.00818.33
8.3.40.0160.00618.84
8.3.30.0110.00718.51
8.3.20.0040.00420.74
8.3.10.0000.00823.48
8.3.00.0080.00023.66
8.2.240.0040.00419.08
8.2.230.0060.00320.94
8.2.220.0050.00337.54
8.2.210.0080.00026.77
8.2.200.0070.00416.88
8.2.190.0150.00616.63
8.2.180.0040.01118.26
8.2.170.0150.00022.96
8.2.160.0110.00320.44
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00019.76
8.2.110.0000.00921.89
8.2.100.0040.00717.78
8.2.90.0040.00417.84
8.2.80.0050.00319.12
8.2.70.0040.00417.50
8.2.60.0050.00317.90
8.2.50.0000.00917.98
8.2.40.0040.00419.23
8.2.30.0050.00319.14
8.2.20.0030.00518.02
8.2.10.0040.00419.10
8.2.00.0050.00218.04
8.1.300.0060.00316.29
8.1.290.0070.00330.84
8.1.280.0000.01525.92
8.1.270.0050.00318.91
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00420.71
8.1.230.0040.00720.97
8.1.220.0040.00417.74
8.1.210.0000.01018.78
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0050.00318.10
8.1.170.0050.00317.62
8.1.160.0050.00218.78
8.1.150.0000.00718.87
8.1.140.0080.00018.86
8.1.130.0040.00419.28
8.1.120.0050.00217.36
8.1.110.0030.00417.46
8.1.100.0040.00417.45
8.1.90.0090.00017.47
8.1.80.0030.00617.45
8.1.70.0000.00717.45
8.1.60.0040.00417.47
8.1.50.0040.00417.50
8.1.40.0040.00417.50
8.1.30.0000.00717.53
8.1.20.0000.00917.61
8.1.10.0040.00417.46
8.1.00.0060.00317.50
8.0.300.0000.00820.08
8.0.290.0000.00716.63
8.0.280.0030.00318.37
8.0.270.0000.00717.04
8.0.260.0000.00718.27
8.0.250.0040.00416.80
8.0.240.0030.00316.88
8.0.230.0000.00716.96
8.0.220.0030.00316.87
8.0.210.0030.00316.84
8.0.200.0030.00316.97
8.0.190.0020.00516.95
8.0.180.0000.00816.83
8.0.170.0060.00316.91
8.0.160.0070.00016.94
8.0.150.0040.00416.84
8.0.140.0070.00016.81
8.0.130.0030.00313.45
8.0.120.0040.00416.94
8.0.110.0000.00816.92
8.0.100.0030.00616.95
8.0.90.0030.00517.05
8.0.80.0050.01016.90
8.0.70.0000.00716.81
8.0.60.0070.00016.90
8.0.50.0040.00416.93
8.0.30.0050.01017.03
8.0.20.0120.00917.11
8.0.10.0040.00417.02
8.0.00.0120.00716.74
7.4.330.0000.00415.55
7.4.320.0030.00316.50
7.4.300.0060.00016.56
7.4.290.0070.00016.49
7.4.280.0090.00016.59
7.4.270.0070.00016.54
7.4.260.0000.00716.50
7.4.250.0030.00316.55
7.4.240.0070.00016.48
7.4.230.0040.00416.59
7.4.220.0000.00816.57
7.4.210.0080.00716.67
7.4.200.0040.00416.39
7.4.160.0080.00916.57
7.4.140.0090.01117.86
7.4.130.0140.00316.46
7.4.120.0050.01616.30
7.4.110.0090.00916.38
7.4.100.0130.00516.47
7.4.90.0140.00316.36
7.4.80.0110.00817.84
7.4.70.0110.00616.31
7.4.60.0120.00816.32
7.4.50.0150.00516.39
7.4.40.0080.01016.32
7.4.30.0090.00916.33
7.4.20.0060.01216.34
7.4.10.0100.00716.30
7.4.00.0080.01015.63
7.3.330.0000.00513.27
7.3.320.0030.00313.27
7.3.310.0000.00716.37
7.3.300.0000.00716.16
7.3.290.0000.00716.32
7.3.280.0070.01016.32
7.3.260.0090.01016.50
7.3.240.0060.01216.38
7.3.230.0120.00516.39
7.3.220.0070.01016.36
7.3.210.0100.00816.42
7.3.200.0080.01316.50
7.3.190.0110.00816.46
7.3.180.0090.00916.41
7.3.170.0070.01316.41
7.3.160.0070.00916.45
7.3.150.0120.00616.36
7.3.140.0140.00316.14
7.3.130.0040.01316.47
7.3.120.0110.00716.18
7.3.110.0160.00616.30
7.3.100.0000.02016.12
7.3.90.0100.00716.39
7.3.80.0110.00616.10
7.3.70.0060.01516.23
7.3.60.0120.01316.29
7.3.50.0100.00716.40
7.3.40.0100.01316.22
7.3.30.0070.01116.35
7.3.20.0060.01116.30
7.3.10.0390.00715.06
7.3.00.0390.00714.98
7.2.340.0120.00616.41
7.2.330.0080.01016.53
7.2.320.0070.01416.46
7.2.310.0050.01216.37
7.2.300.0100.00716.56
7.2.290.0040.01416.50
7.2.280.0080.01116.42
7.2.270.0120.00616.34
7.2.260.0030.01516.49
7.2.250.0090.01516.36
7.2.240.0090.00916.36
7.2.230.0190.00416.04
7.2.220.0060.01216.38
7.2.210.0080.00816.50
7.2.200.0110.01116.46
7.2.190.0040.01216.42
7.2.180.0170.00716.38
7.2.170.0070.01016.42
7.2.160.0080.01416.43
7.2.150.0150.00316.46
7.2.140.0070.01016.46
7.2.130.0350.00815.14
7.2.120.0450.01015.18
7.2.110.0390.00715.18
7.2.100.0360.00615.25
7.2.90.0330.00815.17
7.2.80.0310.00815.17
7.2.70.0580.00615.22
7.2.60.0330.00715.20
7.2.50.0400.00615.15
7.2.40.0430.00815.33
7.2.30.0380.00615.23
7.2.20.0390.00615.13
7.2.10.0420.00815.25
7.2.00.0330.00915.29
7.1.330.0410.00715.33
7.1.320.0130.01215.48
7.1.310.0060.01115.48
7.1.300.0080.00815.63
7.1.290.0140.01415.43
7.1.280.0100.00715.39
7.1.270.0100.00715.46
7.1.260.0080.00815.35
7.1.250.0370.00514.15
7.1.240.0330.00814.49
7.1.230.0330.01314.42
7.1.220.0260.01014.23
7.1.210.0320.01214.24
7.1.200.0330.00714.42
7.1.190.0360.00714.25
7.1.180.0330.00614.38
7.1.170.0340.00614.26
7.1.160.0420.01014.31
7.1.150.0340.01014.30
7.1.140.0370.00714.38
7.1.130.0270.00714.22
7.1.120.0460.00514.28
7.1.110.0360.00514.30
7.1.100.0400.00814.40
7.1.90.0250.01314.44
7.1.80.0330.01014.32
7.1.70.0420.01114.10
7.1.60.0300.00914.31
7.1.50.0700.00614.11
7.1.40.0320.00614.31
7.1.30.0330.00514.41
7.1.20.0330.00514.37
7.1.10.0340.01014.35
7.1.00.0300.01214.16

preferences:
32.03 ms | 403 KiB | 5 Q