3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestException1 extends Exception {} class TestException2 extends Exception {} function derp() { throw new TestException2('derp'); } try { derp(); } catch(TestException1 $e) { echo "Exception 1"; } catch(TestException2 $e) { echo "Exception 2"; }

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.0080.00816.63
8.3.50.0170.00322.12
8.3.40.0140.00018.90
8.3.30.0070.00719.04
8.3.20.0050.00320.33
8.3.10.0090.00023.45
8.3.00.0050.00320.88
8.2.180.0140.00018.29
8.2.170.0120.00322.96
8.2.160.0110.00420.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00720.53
8.2.110.0060.00322.07
8.2.100.0040.00817.72
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0030.00617.48
8.2.60.0060.00318.04
8.2.50.0080.00018.07
8.2.40.0040.00420.06
8.2.30.0000.00718.24
8.2.20.0040.00417.70
8.2.10.0040.00417.91
8.2.00.0050.00317.71
8.1.280.0090.00625.92
8.1.270.0080.00023.86
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00323.74
8.1.230.0040.00719.02
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0050.00317.23
8.1.180.0050.00518.10
8.1.170.0050.00318.49
8.1.160.0000.00721.91
8.1.150.0070.00018.54
8.1.140.0040.00417.46
8.1.130.0030.00317.73
8.1.120.0000.00817.28
8.1.110.0060.00317.41
8.1.100.0000.00817.45
8.1.90.0080.00017.46
8.1.80.0030.00617.51
8.1.70.0070.00017.41
8.1.60.0040.00417.56
8.1.50.0040.00417.47
8.1.40.0030.00517.41
8.1.30.0030.00517.71
8.1.20.0070.00017.68
8.1.10.0050.00317.46
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0000.00718.43
8.0.270.0030.00317.21
8.0.260.0060.00017.21
8.0.250.0030.00316.91
8.0.240.0000.00816.93
8.0.230.0030.00316.86
8.0.220.0040.00416.80
8.0.210.0030.00316.92
8.0.200.0000.00716.94
8.0.190.0050.00316.90
8.0.180.0040.00416.89
8.0.170.0070.00416.91
8.0.160.0070.00016.87
8.0.150.0050.00316.86
8.0.140.0080.00016.89
8.0.130.0030.00313.36
8.0.120.0080.00016.94
8.0.110.0030.00616.88
8.0.100.0070.00016.93
8.0.90.0080.00016.89
8.0.80.0110.00416.94
8.0.70.0040.00416.80
8.0.60.0050.00316.76
8.0.50.0000.00717.05
8.0.30.0080.01217.00
8.0.20.0120.00817.40
8.0.10.0000.00716.92
8.0.00.0070.01216.92
7.4.330.0000.00615.08
7.4.320.0040.00416.48
7.4.300.0060.00016.58
7.4.290.0030.00316.48
7.4.280.0090.00016.63
7.4.270.0060.00316.41
7.4.260.0040.00416.58
7.4.250.0070.00016.39
7.4.240.0040.00316.56
7.4.230.0050.00316.29
7.4.220.0140.00716.54
7.4.210.0070.00816.61
7.4.200.0000.00716.52
7.4.190.0000.00716.31
7.4.160.0100.00616.49
7.4.150.0080.01017.40
7.4.140.0130.00817.86
7.4.130.0050.01116.56
7.4.120.0060.01116.59
7.4.110.0030.01216.57
7.4.100.0060.01216.36
7.4.90.0130.00316.61
7.4.80.0090.00919.39
7.4.70.0100.00716.38
7.4.60.0130.00316.38
7.4.50.0040.00416.37
7.4.40.0060.00916.62
7.4.30.0140.00716.75
7.4.00.0070.00715.11
7.3.330.0000.00513.25
7.3.320.0030.00313.16
7.3.310.0040.00416.19
7.3.300.0030.00316.31
7.3.290.0080.00816.20
7.3.280.0090.01016.26
7.3.270.0130.00317.40
7.3.260.0120.00616.34
7.3.250.0100.01016.49
7.3.240.0170.00016.47
7.3.230.0100.00716.39
7.3.210.0090.01216.42
7.3.200.0100.00719.39
7.3.190.0200.00316.49
7.3.180.0060.00916.29
7.3.170.0090.00916.56
7.3.160.0120.00316.35
7.3.120.0070.01014.73
7.2.330.0140.00916.66
7.2.320.0090.00916.61
7.2.310.0090.01216.73
7.2.300.0100.01016.58
7.2.290.0160.00316.54
7.2.00.0050.00519.07
7.1.100.0290.01617.55
7.1.70.0000.00917.21
7.1.60.0000.01016.87
7.1.50.0030.01716.77
7.1.00.0100.06322.28
7.0.200.0070.00716.39
7.0.140.0000.07722.21
7.0.60.0130.07319.93
7.0.50.0000.04717.85
7.0.40.0070.08720.02
7.0.30.0330.04320.10
7.0.20.0330.04020.33
7.0.10.0130.05720.15
7.0.00.0070.08720.06
5.6.280.0000.07320.83
5.6.210.0030.08320.76
5.6.200.0000.05718.18
5.6.190.0100.03720.34
5.6.180.0470.05020.46
5.6.170.0170.08720.34
5.6.160.0030.09020.46
5.6.150.0070.03718.19
5.6.140.0100.03718.28
5.6.130.0070.06718.12
5.6.120.0030.04021.06
5.6.110.0070.03721.15
5.6.100.0030.04720.99
5.6.90.0100.08021.14
5.6.80.0170.07720.45
5.5.350.4130.04720.36
5.5.340.0030.06017.95
5.5.330.0100.05020.43
5.5.320.0100.05320.31
5.5.310.0400.06320.38
5.5.300.0070.03717.95
5.5.290.0030.07318.06
5.5.280.0030.04320.91
5.5.270.0070.07320.89
5.5.260.0300.06320.76
5.5.250.0030.04020.70
5.5.240.0170.06320.20
5.4.450.0400.04319.46
5.4.440.0500.06719.32
5.4.430.0700.06319.63
5.4.420.0530.05719.48
5.4.410.0500.06719.18
5.4.400.0500.03019.19
5.4.390.0600.06719.31
5.4.380.0430.03719.22
5.4.370.0270.07019.09
5.4.360.0170.05018.87
5.4.350.0570.06719.06
5.4.340.0470.03719.09
5.4.320.0470.03719.24
5.4.310.0470.04319.19
5.4.300.0430.07318.98
5.4.290.0370.05019.21
5.4.280.0430.04019.21
5.4.270.0430.05718.85
5.4.260.0500.03018.87
5.4.250.0430.07018.99
5.4.240.0430.04018.97
5.4.230.0600.06319.15
5.4.220.0430.04319.14
5.4.210.0430.03318.86
5.4.200.0370.04319.21
5.4.190.0570.05718.84
5.4.180.0370.04018.96
5.4.170.0430.03319.23
5.4.160.0430.06718.96
5.4.150.0430.07019.05
5.4.140.0400.04716.40
5.4.130.0430.03716.55
5.4.120.0630.05016.72
5.4.110.0530.04016.59
5.4.100.0430.03716.26
5.4.90.0430.06716.31
5.4.80.0370.04316.59
5.4.70.0530.06316.57
5.4.60.0530.05716.57
5.4.50.0430.03016.25
5.4.40.0500.06316.43
5.4.30.0470.07016.52
5.4.20.0470.03716.53
5.4.10.0600.07016.37
5.4.00.0530.05315.81
5.3.290.0470.03314.79
5.3.280.0400.04714.51
5.3.270.0500.06314.70
5.3.260.0330.04014.62
5.3.250.0530.06014.73
5.3.240.0430.06714.51
5.3.230.0430.05014.57
5.3.220.0570.05714.69
5.3.210.0430.05014.48
5.3.200.0470.05014.63
5.3.190.0530.05014.50
5.3.180.0500.07014.57
5.3.170.0530.06314.56
5.3.160.0470.06314.68
5.3.150.0530.02314.57
5.3.140.0500.06014.70
5.3.130.0530.06714.64
5.3.120.0430.03714.46
5.3.110.0630.05314.47
5.3.100.0430.03314.06
5.3.90.0400.03714.11
5.3.80.0370.04314.05
5.3.70.0430.05713.96
5.3.60.0430.04013.87
5.3.50.0400.04313.98
5.3.40.0400.04314.06
5.3.30.0530.06013.97
5.3.20.0500.03713.86
5.3.10.0430.03313.57
5.3.00.0530.03013.81
5.2.170.0370.05011.11
5.2.160.0400.02711.07
5.2.150.0370.03011.03
5.2.140.0430.03711.20
5.2.130.0300.03711.02
5.2.120.0400.05711.02
5.2.110.0430.05011.21
5.2.100.0300.03011.03
5.2.90.0330.03711.33
5.2.80.0400.03011.10
5.2.70.0430.05711.06
5.2.60.0470.02011.28
5.2.50.0270.04310.94
5.2.40.0330.03011.01
5.2.30.0230.03311.14
5.2.20.0370.02711.12
5.2.10.0270.03310.78
5.2.00.0370.05010.81
5.1.60.0270.02710.13
5.1.50.0330.0339.94
5.1.40.0370.0439.92
5.1.30.0300.03310.32
5.1.20.0270.02710.33
5.1.10.0400.04010.13
5.1.00.0200.0379.96
5.0.50.0230.0378.48
5.0.40.0230.0408.33
5.0.30.0200.0378.21
5.0.20.0200.0338.14
5.0.10.0200.0138.07
5.0.00.0170.0538.07
4.4.90.0130.0237.65
4.4.80.0130.0237.65
4.4.70.0130.0207.65
4.4.60.0200.0237.65
4.4.50.0170.0207.65
4.4.40.0230.0437.65
4.4.30.0170.0207.65
4.4.20.0230.0307.65
4.4.10.0200.0337.65
4.4.00.0230.0377.65
4.3.110.0170.0277.65
4.3.100.0100.0277.65
4.3.90.0070.0207.65
4.3.80.0200.0437.65
4.3.70.0170.0207.65
4.3.60.0170.0137.65
4.3.50.0230.0337.65
4.3.40.0270.0377.65
4.3.30.0070.0307.65
4.3.20.0100.0337.65
4.3.10.0170.0177.65
4.3.00.0070.0377.65

preferences:
60.93 ms | 401 KiB | 5 Q