3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class A_Error extends Exception {} class B_Error extends Exception {} class C_Error extends Exception {} try { throw new A_Error(); } catch (A_Error $e) { goto abc; } catch (B_Error $e) { goto abc; } catch (C_Error $e) { abc: var_dump(get_class($e)); echo "Gotta Catch 'Em All\n"; }

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.01116.74
8.3.50.0090.00617.93
8.3.40.0120.00318.82
8.3.30.0100.00318.68
8.3.20.0060.00318.77
8.3.10.0040.00420.29
8.3.00.0040.00418.04
8.2.180.0040.01818.16
8.2.170.0000.01419.09
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00819.77
8.2.110.0060.00320.35
8.2.100.0060.00617.91
8.2.90.0040.00418.28
8.2.80.0040.00419.22
8.2.70.0040.00418.03
8.2.60.0070.00018.09
8.2.50.0060.00318.10
8.2.40.0000.00822.32
8.2.30.0000.00719.07
8.2.20.0000.00717.75
8.2.10.0000.00817.94
8.2.00.0000.00718.12
8.1.280.0070.01025.92
8.1.270.0080.00023.99
8.1.260.0180.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00019.01
8.1.230.0060.00620.84
8.1.220.0040.00417.74
8.1.210.0080.00018.79
8.1.200.0030.00617.35
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0090.00018.52
8.1.160.0000.00819.02
8.1.150.0080.00018.89
8.1.140.0000.00819.63
8.1.130.0000.00717.46
8.1.120.0030.00317.41
8.1.110.0070.00017.41
8.1.100.0050.00217.48
8.1.90.0030.00717.43
8.1.80.0000.00717.35
8.1.70.0030.00317.36
8.1.60.0040.00417.47
8.1.50.0060.00317.50
8.1.40.0000.00817.49
8.1.30.0040.00417.55
8.1.20.0000.00817.56
8.1.10.0020.00517.60
8.1.00.0070.00017.53
8.0.300.0000.00720.07
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0040.00417.13
8.0.260.0030.00516.86
8.0.250.0030.00316.87
8.0.240.0030.00517.02
8.0.230.0030.00316.85
8.0.220.0030.00616.89
8.0.210.0060.00316.79
8.0.200.0000.00816.97
8.0.190.0050.00316.83
8.0.180.0040.00416.81
8.0.170.0000.00716.91
8.0.160.0040.00316.80
8.0.150.0070.00016.74
8.0.140.0040.00416.91
8.0.130.0030.00313.43
8.0.120.0000.00816.95
8.0.110.0000.00716.91
8.0.100.0040.00416.84
8.0.90.0000.00816.85
8.0.80.0100.00717.02
8.0.70.0000.00716.95
8.0.60.0070.00017.03
8.0.50.0080.00016.84
8.0.30.0060.01216.96
8.0.20.0130.00817.40
8.0.10.0000.00716.97
8.0.00.0100.01016.79
7.4.330.0000.00615.08
7.4.320.0030.00316.65
7.4.300.0000.00616.60
7.4.290.0070.00016.59
7.4.280.0080.00016.64
7.4.270.0000.00716.37
7.4.260.0040.00416.54
7.4.250.0050.00316.49
7.4.240.0030.00516.62
7.4.230.0040.00416.49
7.4.220.0050.00316.35
7.4.210.0120.00316.61
7.4.200.0070.00016.30
7.4.160.0040.01216.29
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0110.01016.58
7.4.120.0110.00616.49
7.4.110.0090.00916.56
7.4.100.0140.00416.57
7.4.90.0140.01016.66
7.4.80.0090.00919.39
7.4.70.0100.00616.52
7.4.60.0030.01216.35
7.4.50.0050.00716.43
7.4.40.0090.00816.63
7.4.30.0110.01116.50
7.4.00.0070.01014.83
7.3.330.0080.00013.23
7.3.320.0000.00613.43
7.3.310.0050.00216.26
7.3.300.0000.00616.32
7.3.290.0100.00716.34
7.3.280.0090.01016.32
7.3.270.0120.01317.40
7.3.260.0100.00716.31
7.3.250.0130.00616.41
7.3.240.0130.00516.55
7.3.230.0000.01716.39
7.3.210.0090.00916.50
7.3.200.0070.01816.48
7.3.190.0070.01016.31
7.3.180.0180.00716.57
7.3.170.0040.01616.63
7.3.160.0080.00816.42
7.3.10.0080.00816.66
7.3.00.0100.00616.65
7.2.330.0100.01016.72
7.2.320.0090.00916.76
7.2.310.0140.01016.42
7.2.300.0030.01416.67
7.2.290.0150.00316.48
7.2.130.0090.01016.62
7.2.120.0080.01116.70
7.2.110.0090.00816.68
7.2.100.0110.00616.66
7.2.90.0080.00916.73
7.2.80.0090.00916.56
7.2.70.0100.00416.59
7.2.60.0080.00816.67
7.2.50.0090.00716.59
7.2.40.0160.00916.95
7.2.30.0160.00816.96
7.2.20.0270.00616.94
7.2.10.0150.00716.89
7.2.00.0210.00617.02
7.1.250.0070.00715.52
7.1.240.0150.00615.68
7.1.230.0150.00315.57
7.1.220.0130.00715.65
7.1.210.0180.01415.40
7.1.200.0130.01015.70
7.1.190.0100.00515.48
7.1.180.0160.00315.33
7.1.170.0040.01515.83
7.1.160.0550.00716.10
7.1.150.0480.01016.27
7.1.140.0710.00816.17
7.1.130.0540.00616.24
7.1.120.0350.00816.29
7.1.110.0410.00515.95
7.1.100.0290.01015.87
7.1.90.0330.00715.79
7.1.80.0500.01116.05
7.1.70.0390.00415.97
7.1.60.0390.01221.84
7.1.50.0370.00721.53
7.1.40.0340.00821.57
7.1.30.0340.00921.49
7.1.20.0270.01121.69
7.1.10.0260.00615.59
7.1.00.0350.00715.80
7.0.330.0150.00415.15
7.0.320.0080.00815.19
7.0.310.0110.00715.15
7.0.300.0280.00415.53
7.0.290.0420.00815.79
7.0.280.0110.00315.15
7.0.270.0360.00615.99
7.0.260.0260.01015.74
7.0.250.0430.00815.57
7.0.240.0340.00815.63
7.0.230.0280.00915.65
7.0.220.0480.00815.45
7.0.210.0370.00914.93
7.0.200.0240.00715.57
7.0.190.0380.00715.58
7.0.180.0270.00615.36
7.0.170.0310.00515.33
7.0.160.0260.00715.28
7.0.150.0280.00415.31
7.0.140.0240.00815.38
7.0.130.0360.00815.43
7.0.120.0430.00715.42
7.0.110.0320.00715.26
7.0.100.0130.00915.31
7.0.90.0510.00515.24
7.0.80.0220.00915.45
7.0.70.0210.01015.46
7.0.60.0380.00815.18
7.0.50.0360.00715.31
7.0.40.0290.00514.47
7.0.30.0560.01014.41
7.0.20.0430.00714.33
7.0.10.0430.00614.44
7.0.00.0340.00714.44
5.6.380.0060.00614.07
5.6.370.0060.00714.52
5.6.360.0090.00614.11
5.6.350.0100.00314.11
5.6.340.0030.01014.25
5.6.330.0030.00614.29
5.6.320.0070.00414.48
5.6.310.0070.00714.29
5.6.300.0070.03718.63
5.6.290.0090.03918.61
5.6.280.0120.04018.66
5.6.270.0160.03718.79
5.6.260.0130.03218.55
5.6.250.0090.03418.71
5.6.240.0050.04018.63
5.6.230.0100.04718.64
5.6.220.0070.03518.59
5.6.210.0080.03618.59
5.6.200.0110.03818.49
5.6.190.0090.03518.54
5.6.180.0130.04118.54
5.6.170.0070.03518.63
5.6.160.0070.03718.45
5.6.150.0120.03118.47
5.6.140.0100.04518.62
5.6.130.0090.04318.58
5.6.120.0080.03318.56
5.6.110.0110.03818.60
5.6.100.0050.04318.46
5.6.90.0090.04018.67
5.6.80.0110.03118.09
5.6.70.0090.03318.11
5.6.60.0110.03118.10
5.6.50.0120.03618.19
5.6.40.0060.03517.95
5.6.30.0070.03718.20
5.6.20.0080.03418.12
5.6.10.0080.03618.17
5.6.00.0080.03218.04
5.5.380.0080.03715.44
5.5.370.0070.03615.34
5.5.360.0050.03515.29
5.5.350.0120.03015.37
5.5.340.0070.03415.54
5.5.330.0060.03515.42
5.5.320.0100.03415.64
5.5.310.0090.03515.68
5.5.300.0060.03315.67
5.5.290.0080.03515.71
5.5.280.0060.03815.56
5.5.270.0100.03315.51
5.5.260.0070.03415.59
5.5.250.0050.04415.31
5.5.240.0060.03215.11
5.5.230.0120.02915.12
5.5.220.0070.03815.11
5.5.210.0080.03115.16
5.5.200.0140.03415.21
5.5.190.0080.03315.20
5.5.180.0150.03915.20
5.5.170.0080.00011.01
5.5.160.0070.03015.13
5.5.150.0140.02815.26
5.5.140.0050.03415.16
5.5.130.0080.03815.11
5.5.120.0080.03415.27
5.5.110.0060.03215.09
5.5.100.0100.04115.00
5.5.90.0060.03615.26
5.5.80.0120.03315.26
5.5.70.0110.03115.17
5.5.60.0080.03714.95
5.5.50.0080.03915.04
5.5.40.0090.03115.14
5.5.30.0120.03315.04
5.5.20.0090.03115.19
5.5.10.0090.03515.19
5.5.00.0100.03215.02
5.4.450.0080.03716.54
5.4.440.0130.03816.49
5.4.430.0070.03316.54
5.4.420.0060.03816.64
5.4.410.0110.03416.52
5.4.400.0100.02916.32
5.4.390.0030.04916.33
5.4.380.0070.03716.22
5.4.370.0060.03316.25
5.4.360.0090.03316.35
5.4.350.0090.02916.33
5.4.340.0080.03116.32
5.4.330.0060.00311.12
5.4.320.0070.03516.18
5.4.310.0060.03416.31
5.4.300.0070.03316.26
5.4.290.0090.03316.14
5.4.280.0100.04916.34
5.4.270.0080.03016.27
5.4.260.0070.03216.07
5.4.250.0160.03116.27
5.4.240.0120.03116.32
5.4.230.0110.03816.28
5.4.220.0070.04016.30
5.4.210.0050.04416.33
5.4.200.0090.04016.21
5.4.190.0160.03216.29
5.4.180.0070.03116.36
5.4.170.0100.03716.32
5.4.160.0070.03316.32
5.4.150.0070.03616.39
5.4.140.0100.03114.79
5.4.130.0080.03514.62
5.4.120.0090.03114.67
5.4.110.0090.03114.63
5.4.100.0060.03014.69
5.4.90.0080.03814.69
5.4.80.0100.03214.72
5.4.70.0080.03614.59
5.4.60.0120.03314.74
5.4.50.0120.02714.66
5.4.40.0050.03614.69
5.4.30.0060.03214.73
5.4.20.0090.03114.67
5.4.10.0070.03014.65
5.4.00.0070.03414.45
5.3.290.0070.03713.63
5.3.280.0090.03813.54
5.3.270.0130.03413.46
5.3.260.0060.04213.58
5.3.250.0090.04013.58
5.3.240.0070.02913.49
5.3.230.0070.03113.55
5.3.220.0090.03413.40
5.3.210.0090.03213.44
5.3.200.0100.04413.54
5.3.190.0090.03713.45
5.3.180.0050.03813.57
5.3.170.0100.03613.62
5.3.160.0050.03213.55
5.3.150.0090.03413.49
5.3.140.0060.03113.53
5.3.130.0060.03513.55
5.3.120.0070.03513.45
5.3.110.0120.03513.55
5.3.100.0100.02913.30
5.3.90.0110.03213.38
5.3.80.0080.03513.18
5.3.70.0100.03013.15
5.3.60.0120.03213.35
5.3.50.0090.03613.14
5.3.40.0100.03213.21
5.3.30.0170.03213.33
5.3.20.0070.03013.25
5.3.10.0070.02713.15
5.3.00.0090.03513.12
5.2.170.0120.03412.03
5.2.160.0100.02511.91
5.2.150.0150.02412.05
5.2.140.0040.03112.04
5.2.130.0090.02911.96
5.2.120.0060.02712.03
5.2.110.0070.02512.02
5.2.100.0050.02511.98
5.2.90.0080.02512.01
5.2.80.0050.02711.95
5.2.70.0090.02712.01
5.2.60.0110.03212.00
5.2.50.0050.03311.99
5.2.40.0070.02311.97
5.2.30.0050.02511.91
5.2.20.0070.02711.92
5.2.10.0040.02411.92
5.2.00.0100.02611.91
5.1.60.0090.02311.67
5.1.50.0040.02411.64
5.1.40.0080.02311.67
5.1.30.0090.02111.79
5.1.20.0090.02011.69
5.1.10.0050.02411.69
5.1.00.0100.02511.62
5.0.50.0090.02311.19
5.0.40.0050.02111.12
5.0.30.0070.02511.00
5.0.20.0060.01710.98
5.0.10.0080.01411.06
5.0.00.0040.02511.06
4.4.90.0040.01510.98
4.4.80.0040.01610.98
4.4.70.0040.01410.98
4.4.60.0060.01210.98
4.4.50.0030.01610.98
4.4.40.0040.02310.98
4.4.30.0040.01610.98
4.4.20.0060.01310.98
4.4.10.0040.01510.98
4.4.00.0040.02210.98
4.3.110.0030.01710.98
4.3.100.0040.01310.98
4.3.90.0030.01510.98
4.3.80.0070.01910.98
4.3.70.0040.01310.98
4.3.60.0040.01610.98
4.3.50.0030.01410.98
4.3.40.0040.02110.98
4.3.30.0060.01210.98
4.3.20.0020.01710.98
4.3.10.0030.01610.98
4.3.00.0050.01210.98

preferences:
68.08 ms | 401 KiB | 5 Q