3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { echo "1\n"; throw new Exception("E1"); } catch (Exception $e) { throw $e; } finally { try { echo "2\n"; throw new Exception("E2"); } catch (\Exception $e) { echo "3\n"; } } echo "4-\n"; } catch (\Exception $e) { echo "4+".$e->getMessage()."\n"; } echo "5\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.130.0160.00318.48
8.3.120.0120.00618.84
8.3.110.0090.00620.94
8.3.100.0130.00324.06
8.3.90.0000.00826.77
8.3.80.0030.00616.63
8.3.70.0100.00716.50
8.3.60.0070.00718.43
8.3.50.0090.00921.97
8.3.40.0040.01118.98
8.3.30.0040.01119.05
8.3.20.0080.00020.39
8.3.10.0040.00420.52
8.3.00.0050.00319.51
8.2.250.0100.00016.71
8.2.240.0030.00619.09
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00616.63
8.2.190.0090.00616.88
8.2.180.0090.00618.54
8.2.170.0070.01418.96
8.2.160.0130.00322.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.09
8.2.110.0080.00020.39
8.2.100.0090.00318.16
8.2.90.0090.00019.22
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0030.00717.80
8.2.50.0090.00018.07
8.2.40.0070.00018.22
8.2.30.0030.00618.13
8.2.20.0040.00417.76
8.2.10.0020.00518.16
8.2.00.0040.00417.70
8.1.300.0080.00016.34
8.1.290.0050.00518.88
8.1.280.0110.00725.92
8.1.270.0040.00422.14
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0090.00023.89
8.1.230.0040.00719.16
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0050.00517.35
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0000.01118.48
8.1.160.0000.00821.89
8.1.150.0070.00018.89
8.1.140.0040.00417.37
8.1.130.0000.00717.88
8.1.120.0000.00717.48
8.1.110.0000.00717.48
8.1.100.0070.00017.47
8.1.90.0000.00717.48
8.1.80.0050.00317.46
8.1.70.0070.00017.32
8.1.60.0090.00017.62
8.1.50.0030.00517.43
8.1.40.0080.00017.56
8.1.30.0080.00017.57
8.1.20.0000.00817.51
8.1.10.0040.00417.44
8.1.00.0040.00417.55
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0040.00417.17
8.0.260.0050.00317.21
8.0.250.0000.00616.98
8.0.240.0000.00717.01
8.0.230.0030.00317.00
8.0.220.0000.00816.84
8.0.210.0000.00716.87
8.0.200.0000.00717.06
8.0.190.0000.00717.03
8.0.180.0000.00716.91
8.0.170.0040.00417.04
8.0.160.0070.00016.93
8.0.150.0050.00216.96
8.0.140.0090.00316.88
8.0.130.0000.00613.42
8.0.120.0040.00416.98
8.0.110.0050.00316.82
8.0.100.0040.00416.75
8.0.90.0040.00416.95
8.0.80.0100.01116.91
8.0.70.0030.00516.86
8.0.60.0000.00716.83
8.0.50.0040.00416.82
8.0.30.0100.01217.09
8.0.20.0080.01117.40
8.0.10.0030.00516.91
8.0.00.0130.00516.96
7.4.330.0000.00515.05
7.4.320.0030.00316.51
7.4.300.0030.00316.52
7.4.290.0070.00016.51
7.4.280.0080.00016.53
7.4.270.0000.00716.45
7.4.260.0000.00816.41
7.4.250.0000.00716.48
7.4.240.0030.00316.51
7.4.230.0030.00316.71
7.4.220.0030.02016.61
7.4.210.0070.01316.64
7.4.200.0050.00216.48
7.4.160.0100.00616.49
7.4.150.0140.00417.40
7.4.140.0080.01017.86
7.4.130.0100.00616.49
7.4.120.0050.01816.59
7.4.110.0090.00916.73
7.4.100.0140.00316.54
7.4.90.0170.00716.65
7.4.80.0110.00819.39
7.4.70.0160.00616.64
7.4.60.0080.00816.74
7.4.50.0020.00216.53
7.4.40.0110.00716.38
7.4.30.0090.00916.61
7.4.00.0100.00315.13
7.3.330.0030.00313.17
7.3.320.0000.00513.06
7.3.310.0040.00416.25
7.3.300.0060.00016.34
7.3.290.0120.00816.27
7.3.280.0090.00916.32
7.3.270.0130.00617.40
7.3.260.0090.00916.31
7.3.250.0100.00716.44
7.3.240.0100.01016.37
7.3.230.0090.00916.39
7.3.210.0000.01716.41
7.3.200.0150.00919.39
7.3.190.0030.01316.58
7.3.180.0040.01216.59
7.3.170.0030.01416.42
7.3.160.0100.00616.43
7.2.330.0090.00916.24
7.2.320.0060.01016.54
7.2.310.0060.01016.41
7.2.300.0080.00816.77
7.2.290.0100.00716.50
7.2.60.0070.00716.70
7.2.00.0060.00919.35
7.1.200.0060.00615.88
7.1.100.0090.00918.24
7.1.70.0000.00717.23
7.1.60.0090.01519.32
7.1.50.0090.01216.56
7.1.00.0100.07022.40
7.0.200.0070.00016.45
7.0.140.0000.07322.11
7.0.60.0070.08020.02
7.0.50.0030.05317.79
7.0.40.0030.09020.27
7.0.30.0200.08320.09
7.0.20.0230.08019.99
7.0.10.0000.04720.16
7.0.00.0130.08320.11
5.6.280.0000.07721.12
5.6.210.0030.08020.70
5.6.200.0100.06018.23
5.6.190.0130.07320.48
5.6.180.0330.04020.58
5.6.170.0370.08020.52
5.6.160.0100.04020.50
5.6.150.0030.07318.14
5.6.140.0070.08018.07
5.6.130.0070.08718.16
5.6.120.0130.07020.95
5.6.110.0130.08021.01
5.6.100.0130.07020.88
5.6.90.0130.08320.88
5.6.80.0130.07720.43
5.5.350.0200.07720.30
5.5.340.0100.07717.99
5.5.330.0030.07320.25
5.5.320.0070.08020.24
5.5.310.0230.04020.50
5.5.300.0030.08017.91
5.5.290.0000.04717.93
5.5.280.0100.07020.89
5.5.270.0000.05720.72
5.5.260.0030.07020.79
5.5.250.0130.06720.79
5.5.240.0100.04020.18
5.4.450.0270.07019.31
5.4.440.0300.07719.46
5.4.430.0230.06719.41
5.4.420.0300.05319.37
5.4.410.0300.03719.51
5.4.400.0400.06019.09
5.4.390.0330.07319.22
5.4.380.0300.04718.98
5.4.370.0300.06719.02
5.4.360.0370.04719.14
5.4.350.0370.07319.22
5.4.340.0270.04319.24
5.4.320.0330.04019.13
5.4.310.0270.04718.95
5.4.300.0430.03319.08
5.4.290.0300.06318.85
5.4.280.0330.06718.87
5.4.270.0270.06018.84
5.4.260.0230.04718.98
5.4.250.0200.06019.15
5.4.240.0330.06719.24
5.4.230.0330.05319.19
5.4.220.0370.06019.24
5.4.210.0300.06318.98
5.4.200.0270.05719.21
5.4.190.0230.04718.97
5.4.180.0300.03319.23
5.4.170.0330.07019.14
5.4.160.0370.05719.14
5.4.150.0230.04018.83
5.4.140.0300.04016.38
5.4.130.0230.04316.41
5.4.120.0330.06316.66
5.4.110.0270.05716.37
5.4.100.0270.07016.27
5.4.90.0300.03016.56
5.4.80.0270.06316.18
5.4.70.0300.03716.43
5.4.60.0270.07016.33
5.4.50.0330.07016.39
5.4.40.0300.07016.48
5.4.30.0330.06716.22
5.4.20.0230.07016.53
5.4.10.0230.05716.42
5.4.00.0370.06015.79
5.3.290.0300.07714.52
5.3.280.0230.04714.64
5.3.270.0370.05314.45
5.3.260.0230.05714.59
5.3.250.0230.04014.64
5.3.240.0300.05314.67
5.3.230.0270.05314.64
5.3.220.0330.04714.43
5.3.210.0300.03314.47
5.3.200.0230.04314.54
5.3.190.0300.06314.42
5.3.180.0270.04714.59
5.3.170.0330.06014.59
5.3.160.0330.04014.47
5.3.150.0300.06714.40
5.3.140.0300.06014.51
5.3.130.0330.07014.48
5.3.120.0270.05014.48
5.3.110.0270.06314.39
5.3.100.0400.05713.99
5.3.90.0300.07013.98
5.3.80.0330.06313.93
5.3.70.0270.03713.86
5.3.60.0400.06014.05
5.3.50.0370.06713.97
5.3.40.0270.06713.90
5.3.30.0270.07013.94
5.3.20.0400.06013.64
5.3.10.0330.06013.61
5.3.00.0400.06013.61
5.2.170.0270.05012.00
5.2.160.0230.05312.00
5.2.150.0130.03712.00
5.2.140.0270.05712.00
5.2.130.0270.06012.00
5.2.120.0200.05712.00
5.2.110.0270.04712.00
5.2.100.0230.06312.00
5.2.90.0230.06012.00
5.2.80.0230.05712.00
5.2.70.0230.05712.00
5.2.60.0230.05712.00
5.2.50.0200.04012.00
5.2.40.0170.04712.00
5.2.30.0170.03712.00
5.2.20.0170.04712.00
5.2.10.0270.04312.00
5.2.00.0230.04712.00
5.1.60.0170.05012.00
5.1.50.0200.05312.00
5.1.40.0230.03012.00
5.1.30.0270.04712.00
5.1.20.0230.04712.00
5.1.10.0270.04312.00
5.1.00.0170.03312.00
5.0.50.0130.03012.00
5.0.40.0170.02712.00
5.0.30.0100.03712.00
5.0.20.0100.01712.00
5.0.10.0130.04012.00
5.0.00.0130.04312.00
4.4.90.0130.02712.00
4.4.80.0170.01312.00
4.4.70.0100.03312.00
4.4.60.0070.03712.00
4.4.50.0100.02712.00
4.4.40.0070.05712.00
4.4.30.0130.01712.00
4.4.20.0200.02312.00
4.4.10.0100.03312.00
4.4.00.0100.03312.00
4.3.110.0100.02312.00
4.3.100.0130.01712.00
4.3.90.0170.02712.00
4.3.80.0100.05312.00
4.3.70.0100.03312.00
4.3.60.0100.03312.00
4.3.50.0130.03012.00
4.3.40.0130.04712.00
4.3.30.0030.03712.00
4.3.20.0030.03012.00
4.3.10.0070.02312.00
4.3.00.0030.03012.00

preferences:
30.86 ms | 403 KiB | 5 Q