3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(){ try { throw new Exception('Foo'); } finally { throw new Exception('Bar', 0, new Exception("This grabs the previous exception.")); } } try { foo(); } catch(Exception $exception) { while ($exception = $exception->getPrevious()) { echo $exception->getMessage().PHP_EOL; } }

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.70.0070.00716.88
8.3.60.0110.00418.30
8.3.50.0100.00921.97
8.3.40.0120.00318.93
8.3.30.0070.00719.08
8.3.20.0040.00420.34
8.3.10.0070.00023.66
8.3.00.0030.00719.38
8.2.180.0150.00716.63
8.2.170.0100.01022.96
8.2.160.0070.00720.35
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00422.09
8.2.110.0060.00322.18
8.2.100.0090.00318.05
8.2.90.0040.00419.28
8.2.80.0000.00817.97
8.2.70.0000.00917.38
8.2.60.0000.00818.03
8.2.50.0030.00718.07
8.2.40.0040.00718.16
8.2.30.0100.00018.13
8.2.20.0000.00717.86
8.2.10.0030.00618.02
8.2.00.0030.00617.64
8.1.280.0110.00425.92
8.1.270.0060.00323.88
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.18
8.1.230.0030.00719.08
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0050.00517.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0040.00422.00
8.1.150.0040.00418.77
8.1.140.0050.00317.33
8.1.130.0030.00317.82
8.1.120.0070.00017.34
8.1.110.0040.00417.48
8.1.100.0030.00417.46
8.1.90.0040.00417.46
8.1.80.0070.00017.36
8.1.70.0030.00317.47
8.1.60.0040.00417.64
8.1.50.0060.00317.42
8.1.40.0000.00717.40
8.1.30.0050.00517.74
8.1.20.0050.00317.59
8.1.10.0040.00417.61
8.1.00.0000.00817.56
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0030.00318.42
8.0.270.0000.00717.14
8.0.260.0030.00317.19
8.0.250.0000.00717.00
8.0.240.0000.00716.90
8.0.230.0060.00017.05
8.0.220.0000.00816.98
8.0.210.0000.00716.93
8.0.200.0030.00316.90
8.0.190.0080.00016.91
8.0.180.0040.00416.88
8.0.170.0000.00817.03
8.0.160.0040.00316.80
8.0.150.0060.00717.00
8.0.140.0030.00316.86
8.0.130.0030.00313.47
8.0.120.0000.00816.98
8.0.110.0000.00716.90
8.0.100.0020.00516.88
8.0.90.0000.00716.86
8.0.80.0070.01017.03
8.0.70.0080.00016.92
8.0.60.0070.00016.94
8.0.50.0050.00316.96
8.0.30.0120.01017.00
8.0.20.0150.00717.42
8.0.10.0040.00417.03
8.0.00.0070.01016.70
7.4.330.0050.00015.00
7.4.320.0000.00616.59
7.4.300.0000.00616.63
7.4.290.0040.00416.37
7.4.280.0060.00316.56
7.4.270.0030.00316.60
7.4.260.0040.00416.50
7.4.250.0000.00716.40
7.4.240.0060.00216.51
7.4.230.0000.00716.51
7.4.220.0060.01416.57
7.4.210.0100.01016.60
7.4.200.0000.00716.45
7.4.160.0080.00816.70
7.4.150.0160.00317.40
7.4.140.0110.01317.86
7.4.130.0070.01016.58
7.4.120.0150.00516.66
7.4.110.0090.01216.52
7.4.100.0090.00916.54
7.4.90.0120.00416.66
7.4.80.0060.01219.39
7.4.70.0040.01716.54
7.4.60.0070.01016.61
7.4.50.0060.00316.25
7.4.40.0030.01316.66
7.4.30.0120.00416.67
7.4.00.0100.00615.18
7.3.330.0050.00013.25
7.3.320.0000.00613.32
7.3.310.0000.00716.09
7.3.300.0030.00316.31
7.3.290.0030.01116.38
7.3.280.0130.00616.31
7.3.270.0110.00717.40
7.3.260.0000.01716.42
7.3.250.0100.00716.34
7.3.240.0070.01116.44
7.3.230.0140.00716.40
7.3.210.0100.00716.23
7.3.200.0090.00919.39
7.3.190.0080.00816.48
7.3.180.0060.01016.39
7.3.170.0100.01016.43
7.3.160.0060.01516.51
7.3.120.0100.01014.68
7.3.110.0090.00914.86
7.3.100.0060.00614.70
7.3.90.0000.01414.99
7.3.80.0030.00614.78
7.3.70.0000.01114.66
7.3.60.0060.00314.71
7.3.50.0030.00614.86
7.3.40.0120.00314.79
7.3.30.0150.00314.88
7.3.20.0030.01416.76
7.3.10.0030.00716.85
7.3.00.0090.00616.50
7.2.330.0040.01316.86
7.2.320.0140.00916.51
7.2.310.0070.01116.45
7.2.300.0030.01316.63
7.2.290.0180.00316.72
7.2.250.0060.01114.68
7.2.240.0040.01214.74
7.2.230.0040.01215.01
7.2.220.0060.00914.93
7.2.210.0060.00915.06
7.2.200.0100.00314.91
7.2.190.0060.00315.03
7.2.180.0030.00915.07
7.2.170.0100.01014.80
7.2.60.0000.00916.87
7.2.50.0070.00717.04
7.1.330.0090.00615.72
7.1.320.0030.01015.79
7.1.310.0080.00615.82
7.1.300.0000.00915.77
7.1.290.0040.01115.76
7.1.280.0060.00615.53
7.1.270.0110.00615.64
7.1.260.0080.00315.77
7.1.200.0040.01115.65
7.1.70.0000.00717.25
7.1.60.0070.01719.32
7.1.50.0040.00716.94
7.1.00.0070.06722.45
7.0.200.0000.01016.88
7.0.140.0070.06721.98
7.0.60.0030.06320.02
7.0.50.0030.09017.83
7.0.40.0070.04320.18
7.0.30.0370.04720.20
7.0.20.0300.04320.30
7.0.10.0070.07320.03
7.0.00.0100.08020.20
5.6.280.0000.07721.04
5.6.210.0130.04720.70
5.6.200.0030.04718.22
5.6.190.0030.05020.49
5.6.180.3400.05320.48
5.6.170.0100.05020.55
5.6.160.0030.08720.50
5.6.150.0000.04318.17
5.6.140.0300.04318.15
5.6.130.0030.08318.18
5.6.120.0030.04721.02
5.6.110.0170.07720.99
5.6.100.0100.04020.98
5.6.90.0000.09721.02
5.6.80.0000.05020.51
5.6.70.3500.04020.50
5.5.350.0000.08020.49
5.5.340.0070.05717.92
5.5.330.0030.04020.35
5.5.320.0230.08020.34
5.5.310.0070.05020.27
5.5.300.0130.07017.95
5.5.290.0070.06317.98
5.5.280.0070.07320.72
5.5.270.0070.04020.73
5.5.260.0130.03020.88
5.5.250.0030.08020.58
5.5.240.0230.07020.25
5.4.450.0470.02719.46
5.4.440.0970.06019.52
5.4.430.0600.07019.21
5.4.420.0670.00019.52
5.4.410.0630.00019.21
5.4.400.0630.00019.12
5.4.390.0630.00019.13
5.4.380.0630.00019.04
5.4.370.0630.00019.16
5.4.360.0630.00019.00
5.4.350.0630.00019.07
5.4.340.0080.03312.03
5.4.320.0040.03912.52
5.4.310.0070.03712.52
5.4.300.0050.03812.52
5.4.290.0070.03712.51
5.4.280.0090.03712.41
5.4.270.0030.03912.41
5.4.260.0070.03712.41
5.4.250.0100.04612.41
5.4.240.0060.03612.41
5.4.230.0090.03512.40
5.4.220.0060.03712.40
5.4.210.0040.03712.40
5.4.200.0070.03712.40
5.4.190.0070.03612.40
5.4.180.0070.03512.39
5.4.170.0040.03812.40
5.4.160.0060.03512.40
5.4.150.0070.03712.40
5.4.140.0070.03612.09
5.4.130.0020.03812.07
5.4.120.0060.03412.04
5.4.110.0080.03412.03
5.4.100.0040.03612.03
5.4.90.0050.03812.03
5.4.80.0040.04012.03
5.4.70.0050.03512.03
5.4.60.0070.03312.03
5.4.50.0040.03712.03
5.4.40.0080.03412.02
5.4.30.0070.03312.01
5.4.20.0080.03312.01
5.4.10.0080.04912.01
5.4.00.0050.03611.50
5.3.290.0060.03812.80
5.3.280.0040.03912.71
5.3.270.0070.03712.73
5.3.260.0060.04012.72
5.3.250.0070.03612.72
5.3.240.0030.04112.72
5.3.230.0040.04412.70
5.3.220.0020.04112.68
5.3.210.0040.04112.68
5.3.200.0050.03712.68
5.3.190.0070.03612.68
5.3.180.0070.03512.67
5.3.170.0050.03712.67
5.3.160.0040.03712.68
5.3.150.0050.03812.67
5.3.140.0080.04112.66
5.3.130.0030.04212.66
5.3.120.0080.04212.66
5.3.110.0050.03912.66
5.3.100.0030.03912.13
5.3.90.0050.03612.11
5.3.80.0040.03812.09
5.3.70.0060.03612.09
5.3.60.0070.03512.08
5.3.50.0040.03812.02
5.3.40.0080.03412.02
5.3.30.0080.03311.98
5.3.20.0040.03711.77
5.3.10.0030.03811.74
5.3.00.0050.04011.71
5.2.170.0090.0279.22
5.2.160.0080.0389.22
5.2.150.0040.0309.21
5.2.140.0020.0329.22
5.2.130.0090.0259.17
5.2.120.0040.0309.17
5.2.110.0090.0259.18
5.2.100.0030.0319.18
5.2.90.0050.0299.17
5.2.80.0050.0309.17
5.2.70.0070.0279.18
5.2.60.0050.0319.13
5.2.50.0050.0299.10
5.2.40.0050.0289.07
5.2.30.0030.0319.05
5.2.20.0020.0319.04
5.2.10.0070.0338.95
5.2.00.0030.0308.81
5.1.60.0050.0228.08
5.1.50.0030.0258.08
5.1.40.0030.0308.07
5.1.30.0060.0318.42
5.1.20.0090.0288.44
5.1.10.0040.0318.16
5.1.00.0080.0338.16
5.0.50.0040.0206.64
5.0.40.0060.0196.50
5.0.30.0060.0366.31
5.0.20.0060.0196.29
5.0.10.0010.0306.25
5.0.00.0060.0276.25
4.4.90.0020.0164.78
4.4.80.0020.0194.76
4.4.70.0030.0164.75
4.4.60.0000.0184.75
4.4.50.0010.0164.77
4.4.40.0020.0264.70
4.4.30.0020.0164.76
4.4.20.0040.0154.84
4.4.10.0030.0154.85
4.4.00.0010.0274.76
4.3.110.0040.0144.67
4.3.100.0000.0214.66
4.3.90.0030.0144.63
4.3.80.0040.0254.58
4.3.70.0010.0164.63
4.3.60.0030.0164.63
4.3.50.0040.0224.63
4.3.40.0020.0304.54
4.3.30.0010.0173.30
4.3.20.0020.0163.28
4.3.10.0020.0203.24
4.3.00.0070.01713.71

preferences:
35.93 ms | 401 KiB | 5 Q