3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \Exception("test"); } catch(\Exception $e){ throw new Exception('plop'); } finally { if(isset($e)) echo "exception was thrown with message: " . $e->getMessage(); // else throw new DomainException('no exception thrown!'); }

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.00718.40
8.3.50.0190.01121.08
8.3.40.0070.00718.84
8.3.30.0110.00320.04
8.3.20.0040.00420.61
8.3.10.0040.00421.11
8.3.00.0040.00423.48
8.2.180.0220.00016.75
8.2.170.0080.00822.96
8.2.160.0130.00020.53
8.2.150.0070.00024.18
8.2.140.0100.01024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.94
8.2.110.0000.01120.38
8.2.100.0030.01017.67
8.2.90.0050.00319.10
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00717.93
8.2.50.0080.00018.10
8.2.40.0000.00818.16
8.2.30.0030.00319.34
8.2.20.0040.00417.78
8.2.10.0080.00017.77
8.2.00.0050.00217.62
8.1.280.0170.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.53
8.1.230.0080.00317.72
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0050.00318.10
8.1.170.0050.00318.50
8.1.160.0000.00718.94
8.1.150.0070.00018.63
8.1.140.0000.00717.36
8.1.130.0030.00317.70
8.1.120.0040.00417.46
8.1.110.0020.00517.48
8.1.100.0000.00717.33
8.1.90.0000.00817.44
8.1.80.0040.00417.41
8.1.70.0000.00717.43
8.1.60.0060.00317.54
8.1.50.0040.00417.51
8.1.40.0060.00317.50
8.1.30.0040.00417.57
8.1.20.0040.00417.55
8.1.10.0000.00717.45
8.1.00.0000.00917.54
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0050.00218.50
8.0.270.0070.00017.31
8.0.260.0030.00316.93
8.0.250.0070.00017.05
8.0.240.0000.00716.91
8.0.230.0000.00717.03
8.0.220.0060.00016.84
8.0.210.0030.00316.84
8.0.200.0030.00316.97
8.0.190.0000.00716.91
8.0.180.0080.00016.94
8.0.170.0090.00016.81
8.0.160.0030.00316.88
8.0.150.0070.00016.77
8.0.140.0000.00716.83
8.0.130.0000.00613.37
8.0.120.0060.00316.91
8.0.110.0040.00417.01
8.0.100.0030.00516.72
8.0.90.0000.00716.77
8.0.80.0030.01716.91
8.0.70.0040.00416.88
8.0.60.0000.00716.96
8.0.50.0030.00517.01
8.0.30.0080.01117.16
8.0.20.0110.00717.40
8.0.10.0070.00017.02
8.0.00.0110.01116.83
7.4.330.0050.00014.99
7.4.320.0040.00416.52
7.4.300.0040.00416.54
7.4.290.0040.00416.40
7.4.280.0110.00016.54
7.4.270.0030.00316.52
7.4.260.0050.00013.29
7.4.250.0040.00416.57
7.4.240.0000.00716.59
7.4.230.0050.00216.40
7.4.220.0180.00016.44
7.4.210.0090.00716.60
7.4.200.0030.00316.64
7.4.190.0050.00216.56
7.4.160.0100.00616.32
7.4.150.0090.01217.40
7.4.140.0110.00717.86
7.4.130.0110.00816.55
7.4.120.0100.00916.65
7.4.110.0030.01416.41
7.4.100.0120.00616.41
7.4.90.0090.00916.59
7.4.80.0100.01019.39
7.4.70.0130.00316.57
7.4.60.0070.01016.47
7.4.50.0000.00816.55
7.4.40.0070.01022.77
7.4.30.0130.00316.45
7.4.00.0040.01414.91
7.3.330.0000.00513.17
7.3.320.0000.00613.05
7.3.310.0000.00616.22
7.3.300.0030.00316.25
7.3.290.0080.00616.37
7.3.280.0080.01016.27
7.3.270.0090.00917.40
7.3.260.0140.00618.24
7.3.250.0120.01216.35
7.3.240.0090.00916.45
7.3.230.0080.00816.39
7.3.210.0120.00316.32
7.3.200.0030.01719.39
7.3.190.0030.01316.46
7.3.180.0130.00316.44
7.3.170.0060.01216.27
7.3.160.0100.01316.38
7.3.120.0030.01415.00
7.2.330.0030.01416.56
7.2.320.0100.01016.58
7.2.310.0100.01016.22
7.2.300.0150.00416.61
7.2.290.0130.00316.71
7.2.60.0000.01516.70
7.2.00.0000.01219.45
7.1.200.0000.00815.73
7.1.100.0130.01018.10
7.1.70.0020.00517.09
7.1.60.0120.01219.17
7.1.50.0070.01016.86
7.1.00.0070.06322.45
7.0.200.0000.00816.79
7.0.140.0070.07022.00
7.0.60.0070.06319.89
7.0.50.0130.07317.82
7.0.40.0030.09019.98
7.0.30.0330.07020.20
7.0.20.0230.04720.04
7.0.10.0100.07319.99
7.0.00.0070.05720.12
5.6.280.0070.07021.06
5.6.210.0130.08020.76
5.6.200.0100.03318.29
5.6.190.0030.05020.47
5.6.180.0330.07320.47
5.6.170.0330.06720.55
5.6.160.0100.04020.52
5.6.150.0200.07018.23
5.6.140.0100.08018.18
5.6.130.0030.04718.15
5.6.120.0200.05721.00
5.6.110.0030.08021.00
5.6.100.0170.07721.10
5.6.90.0130.06020.94
5.6.80.0000.06320.39
5.5.350.3930.04020.36
5.5.340.0030.07017.96
5.5.330.0070.04320.34
5.5.320.0300.04020.19
5.5.310.0370.05320.24
5.5.300.0070.04018.00
5.5.290.0030.06318.04
5.5.280.0100.05720.96
5.5.270.0100.08020.84
5.5.260.0030.08320.96
5.5.250.0170.07020.61
5.5.240.0200.04020.18
5.4.450.3730.03019.52
5.4.440.3400.04719.39
5.4.430.3300.05019.47
5.4.420.3600.03719.47
5.4.410.2970.04019.28
5.4.400.3070.03319.16
5.4.390.2170.04019.09
5.4.380.2530.03019.11
5.4.370.3000.03019.17
5.4.360.2930.04019.19
5.4.350.3200.04018.86
5.4.340.3900.03318.99
5.4.320.2930.04019.11
5.4.310.3400.04019.21
5.4.300.3270.04319.28
5.4.290.4130.04319.28
5.4.280.4000.03019.23
5.4.270.3600.03719.20
5.4.260.3730.03718.87
5.4.250.3630.03319.15
5.4.240.2970.04718.88
5.4.230.3070.03319.06
5.4.220.4270.03318.97
5.4.210.2970.04019.27
5.4.200.3130.03719.15
5.4.190.3400.04018.98
5.4.180.3300.03719.14
5.4.170.3100.03718.84
5.4.160.3370.03019.18
5.4.150.3400.03319.06
5.4.140.3000.03716.67
5.4.130.3030.03316.29
5.4.120.3030.03316.32
5.4.110.3200.03716.57
5.4.100.3900.04016.45
5.4.90.3030.03716.45
5.4.80.3100.03316.54
5.4.70.3170.03716.35
5.4.60.3370.03016.54
5.4.50.3330.04016.38
5.4.40.4030.03316.23
5.4.30.4100.02716.48
5.4.20.3430.03316.52
5.4.10.3100.03716.55
5.4.00.3300.03015.96
5.3.290.3330.04714.50
5.3.280.3570.04014.68
5.3.270.3130.04014.65
5.3.260.3630.03714.44
5.3.250.1400.03314.53
5.3.240.3000.03714.55
5.3.230.3270.04014.58
5.3.220.3100.03014.43
5.3.210.3200.02714.61
5.3.200.3100.03014.50
5.3.190.2900.04314.66
5.3.180.3170.02714.40
5.3.170.4000.04314.41
5.3.160.3400.03714.61
5.3.150.3330.03714.52
5.3.140.4000.04314.51
5.3.130.3700.03714.50
5.3.120.4070.04014.38
5.3.110.3600.03714.48
5.3.100.3430.03713.88
5.3.90.3300.03713.88
5.3.80.3400.03313.97
5.3.70.3100.03713.95
5.3.60.3470.05013.91
5.3.50.3370.03713.91
5.3.40.3270.04314.04
5.3.30.3500.03313.75
5.3.20.3170.03313.56
5.3.10.4230.03013.56
5.3.00.3430.03013.58
5.2.170.2970.03011.16
5.2.160.2500.03311.20
5.2.150.2870.02711.16
5.2.140.2970.03010.98
5.2.130.2870.02711.03
5.2.120.2500.03710.96
5.2.110.3070.03310.94
5.2.100.3000.02711.12
5.2.90.2830.02710.94
5.2.80.2730.02710.93
5.2.70.2900.02710.93
5.2.60.2970.03711.05
5.2.50.2670.02711.03
5.2.40.2330.03310.85
5.2.30.2100.03010.82
5.2.20.2130.02710.81
5.2.10.2470.03310.88
5.2.00.2370.02710.65
5.1.60.2330.0239.89
5.1.50.2000.0179.99
5.1.40.2030.03310.06
5.1.30.2370.03310.49
5.1.20.2370.02710.29
5.1.10.2470.02310.05
5.1.00.2270.02310.05
5.0.50.1400.0208.48
5.0.40.1400.0178.49
5.0.30.1300.0378.20
5.0.20.1230.0178.19
5.0.10.0300.0208.06
5.0.00.1430.0338.27
4.4.90.1330.0135.89
4.4.80.1370.0135.80
4.4.70.1330.0175.88
4.4.60.1130.0175.80
4.4.50.1270.0175.84
4.4.40.1100.0275.80
4.4.30.1200.0105.80
4.4.20.1230.0135.86
4.4.10.1300.0175.89
4.4.00.1300.0305.80
4.3.110.1130.0175.80
4.3.100.1300.0205.81
4.3.90.1370.0135.80
4.3.80.1400.0275.80
4.3.70.1200.0135.80
4.3.60.1000.0175.80
4.3.50.1100.0135.80
4.3.40.1070.0235.80
4.3.30.0600.0105.80
4.3.20.0530.0135.80
4.3.10.0530.0205.80
4.3.00.0500.0175.80

preferences:
51.41 ms | 401 KiB | 5 Q