3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { try { throw new Exception('Foo'); } finally { throw new Exception('Bar', 0, null); } } catch (Exception $e) { throw new Exception('Zot', 0, $e); } } catch(Exception $exception) { $foo = $exception; $previous = 0; while ($foo = $foo->getPrevious()) { $previous++; echo "Level $previous\n"; var_dump($foo); } }

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.0040.01118.53
8.3.50.0080.01222.00
8.3.40.0090.00618.63
8.3.30.0110.00419.23
8.3.20.0050.00320.39
8.3.10.0080.00023.52
8.3.00.0030.00619.38
8.2.180.0170.00316.63
8.2.170.0110.00422.96
8.2.160.0120.00919.30
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00822.11
8.2.110.0030.00620.94
8.2.100.0060.00618.03
8.2.90.0090.00017.88
8.2.80.0050.00519.77
8.2.70.0040.00417.93
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0070.00517.90
8.2.30.0040.00417.95
8.2.20.0000.01017.68
8.2.10.0000.00818.25
8.2.00.0000.00817.88
8.1.280.0060.01225.92
8.1.270.0060.00324.02
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.96
8.1.230.0110.00020.29
8.1.220.0090.00017.79
8.1.210.0030.00618.77
8.1.200.0060.00317.36
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0080.00018.64
8.1.160.0080.00022.04
8.1.150.0050.00218.82
8.1.140.0000.00717.39
8.1.130.0030.00317.72
8.1.120.0050.00217.55
8.1.110.0070.00017.38
8.1.100.0000.00717.45
8.1.90.0040.00417.41
8.1.80.0000.00817.45
8.1.70.0030.00317.40
8.1.60.0060.00317.66
8.1.50.0050.00317.48
8.1.40.0030.00617.41
8.1.30.0030.00517.69
8.1.20.0060.00317.66
8.1.10.0090.00017.63
8.1.00.0040.00417.49
8.0.300.0000.00819.73
8.0.290.0080.00016.88
8.0.280.0070.00018.46
8.0.270.0050.00217.28
8.0.260.0030.00317.29
8.0.250.0050.00317.04
8.0.240.0000.00716.93
8.0.230.0030.00316.89
8.0.220.0000.00616.86
8.0.210.0070.00016.90
8.0.200.0070.00316.96
8.0.190.0050.00216.93
8.0.180.0040.00417.04
8.0.170.0030.00516.89
8.0.160.0040.00416.94
8.0.150.0000.00716.93
8.0.140.0000.00816.89
8.0.130.0030.00313.33
8.0.120.0080.00016.97
8.0.110.0040.00417.00
8.0.100.0040.00416.95
8.0.90.0000.00716.84
8.0.80.0110.00616.93
8.0.70.0030.00516.98
8.0.60.0040.00417.04
8.0.50.0070.00016.81
8.0.30.0100.01216.95
8.0.20.0130.01417.40
8.0.10.0070.00017.11
8.0.00.0110.00716.88
7.4.330.0050.00015.00
7.4.320.0000.00716.55
7.4.300.0040.00416.53
7.4.290.0050.00316.69
7.4.280.0030.00516.52
7.4.270.0030.00316.57
7.4.260.0030.00316.40
7.4.250.0040.00416.61
7.4.240.0030.00416.63
7.4.230.0000.00716.41
7.4.220.0100.01716.49
7.4.210.0040.01116.49
7.4.200.0030.00316.72
7.4.160.0160.00316.57
7.4.150.0040.01717.40
7.4.140.0050.01417.86
7.4.130.0040.01516.63
7.4.120.0120.00816.55
7.4.110.0100.01016.67
7.4.100.0150.00316.49
7.4.90.0070.01216.52
7.4.80.0120.00619.39
7.4.70.0120.00616.52
7.4.60.0120.01316.57
7.4.50.0000.00516.73
7.4.40.0160.00016.50
7.4.30.0090.00916.52
7.4.00.0070.01115.07
7.3.330.0050.00013.33
7.3.320.0030.00313.08
7.3.310.0070.00016.44
7.3.300.0030.00316.36
7.3.290.0100.00616.41
7.3.280.0070.00916.34
7.3.270.0160.00617.40
7.3.260.0080.01216.54
7.3.250.0200.00316.41
7.3.240.0040.01916.60
7.3.230.0140.01016.41
7.3.210.0120.00616.41
7.3.200.0110.01019.39
7.3.190.0060.01116.40
7.3.180.0080.00816.56
7.3.170.0070.01416.52
7.3.160.0030.01416.59
7.2.330.0130.00416.28
7.2.320.0120.00616.64
7.2.310.0120.00916.67
7.2.300.0120.00616.48
7.2.290.0090.00916.44
7.2.00.0060.00619.33
7.1.100.0040.00717.84
7.1.70.0000.01317.04
7.1.60.0040.01519.32
7.1.50.0090.01216.68
7.1.00.0000.08022.51
7.0.200.0070.00316.61
7.0.140.0030.07321.95
7.0.60.0070.08019.87
7.0.50.0070.07717.89
7.0.40.0030.04720.27
7.0.30.0300.05020.20
7.0.20.0270.04720.08
7.0.10.0070.04020.13
7.0.00.0070.08720.00
5.6.280.0030.07720.86
5.6.210.0070.03720.66
5.6.200.0070.07018.22
5.6.190.0130.07720.41
5.6.180.0470.08020.49
5.6.170.0200.03720.54
5.6.160.0030.05020.47
5.6.150.0170.07318.19
5.6.140.0070.08318.17
5.6.130.0100.04018.06
5.6.120.0030.07020.96
5.6.110.0130.08321.09
5.6.100.0200.07721.11
5.6.90.0000.05321.01
5.6.80.0030.04320.48
5.5.350.0230.06320.38
5.5.340.0070.04017.91
5.5.330.0100.08320.21
5.5.320.0230.04020.30
5.5.310.0300.07720.34
5.5.300.0130.07017.95
5.5.290.0100.07717.89
5.5.280.0070.06720.87
5.5.270.0100.08020.84
5.5.260.0170.06320.86
5.5.250.0030.09020.65
5.5.240.0270.06720.26
5.4.450.0330.04319.42
5.4.440.0270.04319.64
5.4.430.0370.03719.54
5.4.420.0670.00019.36
5.4.410.0770.00019.44
5.4.400.0600.00019.24
5.4.390.0630.00019.04
5.4.380.0630.00019.21
5.4.370.0630.00019.11
5.4.360.0600.00019.07
5.4.350.0770.00019.07
5.4.340.0090.04812.01
5.4.320.0050.04212.50
5.4.310.0110.03812.49
5.4.300.0020.04412.50
5.4.290.0070.03812.49
5.4.280.0060.04112.39
5.4.270.0100.04012.39
5.4.260.0090.04112.39
5.4.250.0090.04012.39
5.4.240.0090.03812.39
5.4.230.0090.04212.38
5.4.220.0090.04712.38
5.4.210.0050.03712.38
5.4.200.0100.04112.38
5.4.190.0090.03512.38
5.4.180.0110.03412.38
5.4.170.0060.03812.38
5.4.160.0040.03812.38
5.4.150.0070.04112.38
5.4.140.0110.04312.07
5.4.130.0090.03612.05
5.4.120.0100.03512.02
5.4.110.0100.03712.01
5.4.100.0060.04312.01
5.4.90.0050.03712.01
5.4.80.0060.03812.01
5.4.70.0050.03612.01
5.4.60.0080.03812.01
5.4.50.0090.03312.01
5.4.40.0050.03511.99
5.4.30.0080.03511.99
5.4.20.0060.03511.98
5.4.10.0060.03612.00
5.4.00.0050.04811.49
5.3.290.0050.04412.80
5.3.280.0050.04812.70
5.3.270.0030.04312.73
5.3.260.0030.04412.72
5.3.250.0090.04112.72
5.3.240.0110.03712.71
5.3.230.0040.04312.71
5.3.220.0040.04112.68
5.3.210.0100.04312.68
5.3.200.0080.03512.68
5.3.190.0050.04212.68
5.3.180.0090.04412.68
5.3.170.0080.03612.67
5.3.160.0050.03912.67
5.3.150.0090.03412.67
5.3.140.0040.04612.66
5.3.130.0070.04712.66
5.3.120.0090.03612.66
5.3.110.0070.04312.66
5.3.100.0030.03912.12
5.3.90.0070.04512.08
5.3.80.0120.04512.07
5.3.70.0070.04612.07
5.3.60.0060.03812.06
5.3.50.0050.04012.00
5.3.40.0070.03712.00
5.3.30.0080.03511.95
5.3.20.0050.03911.73
5.3.10.0080.03411.70
5.3.00.0050.03911.68
5.2.170.0060.0309.18
5.2.160.0070.0289.18
5.2.150.0080.0279.18
5.2.140.0050.0359.18
5.2.130.0050.0369.14
5.2.120.0070.0439.14
5.2.110.0080.0319.14
5.2.100.0080.0349.14
5.2.90.0070.0299.14
5.2.80.0100.0429.14
5.2.70.0090.0429.14
5.2.60.0070.0379.09
5.2.50.0060.0349.06
5.2.40.0070.0359.04
5.2.30.0050.0319.01
5.2.20.0050.0299.00
5.2.10.0080.0258.93
5.2.00.0050.0288.78
5.1.60.0050.0258.06
5.1.50.0070.0288.06
5.1.40.0030.0318.05
5.1.30.0070.0238.40
5.1.20.0090.0238.42
5.1.10.0050.0308.14
5.1.00.0040.0268.14
5.0.50.0080.0176.62
5.0.40.0030.0206.48
5.0.30.0040.0316.29
5.0.20.0030.0216.26
5.0.10.0040.0236.24
5.0.00.0070.0276.23
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0040.0164.75
4.4.60.0040.0224.75
4.4.50.0030.0194.77
4.4.40.0040.0264.71
4.4.30.0040.0204.75
4.4.20.0020.0204.84
4.4.10.0070.0164.85
4.4.00.0060.0264.76
4.3.110.0020.0204.67
4.3.100.0050.0214.67
4.3.90.0020.0184.63
4.3.80.0050.0274.59
4.3.70.0030.0204.63
4.3.60.0030.0184.63
4.3.50.0030.0184.63
4.3.40.0040.0284.54
4.3.30.0050.0193.29
4.3.20.0030.0173.26
4.3.10.0050.0133.22
4.3.00.0030.01713.71

preferences:
49 ms | 401 KiB | 5 Q