3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new Exception("Ouch!"); } catch (Exception $e) { echo "Exception: " . $e->getMessage(); } catch (Error $error) { echo "Error: " . $error->getMessage(); }

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.0100.01318.18
8.3.50.0120.01021.28
8.3.40.0110.00318.71
8.3.30.0130.00718.77
8.3.20.0040.00420.34
8.3.10.0050.00321.73
8.3.00.0040.00423.66
8.2.180.0040.01518.54
8.2.170.0090.00922.96
8.2.160.0130.00020.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00220.89
8.2.120.0040.00426.35
8.2.110.0050.00519.32
8.2.100.0080.00317.91
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0050.00517.61
8.2.60.0040.00418.01
8.2.50.0040.00418.07
8.2.40.0000.00820.63
8.2.30.0070.00019.42
8.2.20.0050.00217.62
8.2.10.0070.00018.04
8.2.00.0070.00018.06
8.1.280.0150.00625.92
8.1.270.0130.00722.02
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0090.00021.30
8.1.230.0040.00817.45
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0090.00017.00
8.1.180.0090.00018.10
8.1.170.0080.00018.63
8.1.160.0000.00720.76
8.1.150.0020.00520.55
8.1.140.0040.00419.53
8.1.130.0000.00717.66
8.1.120.0050.00217.34
8.1.110.0040.00417.52
8.1.100.0040.00417.41
8.1.90.0070.00017.51
8.1.80.0080.00017.37
8.1.70.0030.00517.44
8.1.60.0020.00517.52
8.1.50.0040.00417.47
8.1.40.0000.00817.52
8.1.30.0080.00017.61
8.1.20.0000.00817.62
8.1.10.0040.00417.53
8.1.00.0000.00717.43
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0030.00317.26
8.0.260.0030.00317.19
8.0.250.0050.00217.02
8.0.240.0030.00616.89
8.0.230.0000.00817.04
8.0.220.0000.00716.99
8.0.210.0000.00816.92
8.0.200.0000.00617.05
8.0.190.0050.00317.00
8.0.180.0000.00716.88
8.0.170.0090.00017.02
8.0.160.0000.00716.96
8.0.150.0080.00016.90
8.0.140.0030.00416.83
8.0.130.0000.00513.34
8.0.120.0080.00016.96
8.0.110.0000.00716.88
8.0.100.0030.00616.88
8.0.90.0080.00016.98
8.0.80.0090.00616.88
8.0.70.0040.00416.98
8.0.60.0040.00417.01
8.0.50.0070.00016.75
8.0.30.0150.00317.04
8.0.20.0110.01017.40
8.0.10.0000.00717.16
8.0.00.0110.00916.81
7.4.330.0060.00016.69
7.4.320.0030.00316.41
7.4.300.0070.00016.64
7.4.290.0030.00316.52
7.4.280.0080.00016.42
7.4.270.0000.00716.64
7.4.260.0030.00316.52
7.4.250.0070.00016.57
7.4.240.0030.00316.41
7.4.230.0000.00716.50
7.4.220.0090.01816.50
7.4.210.0090.00816.52
7.4.200.0000.00716.67
7.4.160.0090.00616.46
7.4.150.0120.00617.40
7.4.140.0110.01317.86
7.4.130.0060.01116.62
7.4.120.0080.01116.53
7.4.110.0090.00616.55
7.4.100.0050.01316.55
7.4.90.0090.00816.55
7.4.80.0030.01419.39
7.4.70.0090.00916.39
7.4.60.0140.01316.44
7.4.50.0100.00616.42
7.4.40.0040.01516.45
7.4.30.0090.00916.52
7.4.00.0110.00314.53
7.3.330.0000.00513.03
7.3.320.0000.00813.15
7.3.310.0050.00216.12
7.3.300.0000.00716.27
7.3.290.0000.00716.30
7.3.280.0140.00416.30
7.3.270.0140.00417.40
7.3.260.0030.01316.52
7.3.250.0090.01016.39
7.3.240.0050.01416.40
7.3.230.0060.01216.39
7.3.210.0100.00616.37
7.3.200.0060.01219.39
7.3.190.0090.00616.53
7.3.180.0140.00316.37
7.3.170.0050.01116.29
7.3.160.0040.01216.43
7.2.330.0070.00716.55
7.2.320.0140.00316.63
7.2.310.0030.01416.53
7.2.300.0000.01716.41
7.2.290.0070.01016.64
7.2.00.0080.00319.43
7.1.100.0040.01318.28
7.1.70.0000.00816.87
7.1.60.0070.01719.40
7.1.50.0030.02016.93
7.1.00.0000.08022.54
7.0.200.0420.00614.48
7.0.60.0070.03721.79
7.0.50.0030.05717.66
7.0.40.0070.07019.90
7.0.30.0270.04320.09
7.0.20.0230.07720.09
7.0.10.0070.07720.18
7.0.00.0030.05020.09
5.6.280.0000.05021.12
5.6.210.0100.05020.48
5.6.200.0000.05718.22
5.6.190.0030.06720.41
5.6.180.0270.07020.77
5.6.170.0230.04720.38
5.6.160.0130.04320.53
5.6.150.0030.09018.20
5.6.140.0100.04018.11
5.6.130.0130.07018.11
5.6.120.0100.03321.09
5.6.110.0070.04321.01
5.6.100.0030.07321.00
5.6.90.0030.04021.00
5.6.80.0130.05720.50
5.5.350.0170.03320.44
5.5.340.0030.04017.87
5.5.330.0130.07720.46
5.5.320.0170.04720.13
5.5.310.0330.07720.45
5.5.300.0030.05718.02
5.5.290.0070.06717.95
5.5.280.0070.08020.82
5.5.270.0100.03720.75
5.5.260.0070.08320.67
5.5.250.0100.07720.49
5.5.240.0130.03720.27

preferences:
51.62 ms | 401 KiB | 5 Q