3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(){ try { throw new Exception('Foo'); } finally { $a = new Exception("Test"); var_dump($a->getPrevious()); $b = new Exception("Test2"); throw new Exception("test3"); } } try { foo(); } catch(Exception $exception) { // $actualPrevious = $exception->getPrevious(); //var_dump($actualPrevious); }

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.01018.50
8.3.50.0140.00722.01
8.3.40.0060.00918.85
8.3.30.0000.01419.08
8.3.20.0040.00420.02
8.3.10.0040.00423.49
8.3.00.0100.00017.75
8.2.180.0090.00616.50
8.2.170.0110.00422.96
8.2.160.0120.00420.17
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00022.18
8.2.110.0080.00020.22
8.2.100.0030.00718.03
8.2.90.0060.00319.07
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0000.00718.03
8.2.30.0080.00318.00
8.2.20.0030.00517.79
8.2.10.0050.00217.96
8.2.00.0040.00417.73
8.1.280.0130.00725.92
8.1.270.0100.00023.67
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0000.00923.97
8.1.230.0030.00819.22
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0050.00517.22
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00821.93
8.1.150.0000.00818.76
8.1.140.0030.00517.41
8.1.130.0000.00717.75
8.1.120.0030.00317.45
8.1.110.0000.00817.51
8.1.100.0070.00017.37
8.1.90.0000.00717.44
8.1.80.0040.00417.39
8.1.70.0070.00017.43
8.1.60.0040.00417.59
8.1.50.0050.00317.51
8.1.40.0000.00717.55
8.1.30.0060.00317.66
8.1.20.0000.00817.57
8.1.10.0040.00417.47
8.1.00.0030.00617.52
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.29
8.0.270.0030.00317.12
8.0.260.0060.00017.10
8.0.250.0000.00616.98
8.0.240.0030.00316.93
8.0.230.0070.00016.99
8.0.220.0000.01016.86
8.0.210.0030.00316.79
8.0.200.0070.00016.84
8.0.190.0040.00416.92
8.0.180.0000.00816.99
8.0.170.0030.00616.90
8.0.160.0070.00016.86
8.0.150.0040.00716.95
8.0.140.0070.00016.94
8.0.130.0050.00013.34
8.0.120.0040.00416.92
8.0.110.0030.00316.86
8.0.100.0040.00416.76
8.0.90.0040.00417.00
8.0.80.0070.00717.00
8.0.70.0040.00416.80
8.0.60.0030.00516.83
8.0.50.0000.00717.02
8.0.30.0100.00917.18
8.0.20.0110.00917.44
8.0.10.0070.00017.05
8.0.00.0100.00816.67
7.4.330.0050.00015.00
7.4.320.0000.00616.51
7.4.300.0030.00316.59
7.4.290.0050.00316.62
7.4.280.0090.00016.41
7.4.270.0030.00316.59
7.4.260.0000.00816.61
7.4.250.0000.00716.46
7.4.240.0030.00316.58
7.4.230.0040.00416.59
7.4.220.0090.00916.46
7.4.210.0040.01016.60
7.4.200.0000.00716.62
7.4.160.0060.01116.66
7.4.150.0060.01217.40
7.4.140.0150.00617.86
7.4.130.0060.01416.55
7.4.120.0060.01116.48
7.4.110.0170.00316.57
7.4.100.0140.00316.50
7.4.90.0030.01416.54
7.4.80.0090.00719.39
7.4.70.0090.00916.74
7.4.60.0170.00316.48
7.4.50.0040.00016.57
7.4.40.0120.00416.61
7.4.30.0130.00316.70
7.4.00.0120.00514.98
7.3.330.0000.00513.32
7.3.320.0030.00313.08
7.3.310.0030.00316.32
7.3.300.0030.00316.16
7.3.290.0060.01016.20
7.3.280.0100.00616.28
7.3.270.0140.00317.40
7.3.260.0150.00616.41
7.3.250.0110.00616.50
7.3.240.0100.00716.40
7.3.230.0130.00316.39
7.3.210.0000.01616.23
7.3.200.0080.01219.39
7.3.190.0140.00316.40
7.3.180.0030.01316.29
7.3.170.0060.00916.51
7.3.160.0070.01416.36
7.3.120.0070.01014.74
7.3.110.0090.00614.70
7.3.100.0070.00714.53
7.3.90.0060.01014.57
7.3.80.0030.01414.90
7.3.70.0070.00414.82
7.3.60.0070.00714.92
7.3.50.0060.00614.70
7.3.40.0030.01314.84
7.3.30.0060.00614.72
7.3.20.0000.01016.49
7.3.10.0040.01116.50
7.3.00.0070.00316.71
7.2.330.0090.00916.59
7.2.320.0100.01016.57
7.2.310.0170.00716.63
7.2.300.0100.01016.57
7.2.290.0070.01016.49
7.2.250.0070.01114.87
7.2.240.0060.01214.86
7.2.230.0030.01315.16
7.2.220.0090.00615.18
7.2.210.0030.01215.25
7.2.200.0110.00415.13
7.2.190.0060.00915.07
7.2.180.0100.01015.08
7.2.170.0100.00315.09
7.2.00.0080.00419.47
7.1.330.0030.01215.40
7.1.320.0120.00315.83
7.1.310.0060.01015.50
7.1.300.0060.00915.86
7.1.290.0070.01015.57
7.1.280.0030.01315.69
7.1.270.0000.01215.57
7.1.260.0030.01315.68
7.1.100.0110.00017.91
7.1.70.0030.00316.80
7.1.60.0100.01319.32
7.1.50.0060.01016.88
7.1.00.0000.08022.38
7.0.200.0060.00316.63
7.0.140.0000.07322.00
7.0.60.0170.06019.95
7.0.50.0070.06017.84
7.0.40.0030.04320.18
7.0.30.0170.05020.26
7.0.20.0170.04720.10
7.0.10.0000.06720.23
7.0.00.0130.08020.05
5.6.280.0070.07021.08
5.6.210.0000.04320.47
5.6.200.0030.06018.16
5.6.190.0100.04020.55
5.6.180.0470.07320.63
5.6.170.0400.07020.54
5.6.160.0070.04720.50
5.6.150.0070.05318.27
5.6.140.0030.08318.17
5.6.130.0300.04018.15
5.6.120.0130.07020.93
5.6.110.0200.04721.01
5.6.100.0130.09020.98
5.6.90.0030.04321.10
5.6.80.0030.03720.52
5.5.350.0100.08020.36
5.5.340.0000.07717.96
5.5.330.0070.04020.47
5.5.320.0370.04020.33
5.5.310.0270.05720.34
5.5.300.0070.06717.95
5.5.290.0070.04317.93
5.5.280.0100.04020.96
5.5.270.0100.07320.84
5.5.260.0070.06720.76
5.5.250.0200.05720.79
5.5.240.0100.04720.27
5.4.450.1000.03319.31
5.4.440.0670.04019.63
5.4.430.0230.03719.30
5.4.420.0670.00019.67
5.4.410.0670.00019.45
5.4.400.0630.00019.25
5.4.390.0630.00019.12
5.4.380.0630.00019.16
5.4.370.0630.00019.24
5.4.360.0630.00019.01
5.4.350.0600.00019.11
5.4.340.0050.03412.02
5.4.320.0060.03612.52
5.4.310.0060.03612.52
5.4.300.0040.03712.52
5.4.290.0060.03712.51
5.4.280.0070.03312.41
5.4.270.0050.03612.41
5.4.260.0070.03712.41
5.4.250.0050.03812.41
5.4.240.0040.03812.41
5.4.230.0050.03812.40
5.4.220.0080.03812.40
5.4.210.0060.03512.40
5.4.200.0080.03512.40
5.4.190.0060.04112.39
5.4.180.0050.03612.40
5.4.170.0060.03512.40
5.4.160.0100.03212.40
5.4.150.0080.03812.40
5.4.140.0060.03712.09
5.4.130.0070.03412.07
5.4.120.0080.03312.04
5.4.110.0080.03312.03
5.4.100.0070.03612.03
5.4.90.0060.03712.03
5.4.80.0050.03712.04
5.4.70.0050.03612.02
5.4.60.0080.03312.03
5.4.50.0060.03612.02
5.4.40.0080.03712.01
5.4.30.0080.03312.01
5.4.20.0040.03812.01
5.4.10.0070.03312.01
5.4.00.0050.03611.51
5.3.290.0060.04512.80
5.3.280.0080.03812.71
5.3.270.0050.04812.73
5.3.260.0060.04212.71
5.3.250.0070.03512.72
5.3.240.0100.03912.72
5.3.230.0070.03612.71
5.3.220.0100.03412.68
5.3.210.0060.04612.68
5.3.200.0060.03712.68
5.3.190.0090.03412.68
5.3.180.0070.04012.68
5.3.170.0080.03712.67
5.3.160.0060.03612.67
5.3.150.0110.03212.67
5.3.140.0060.03612.66
5.3.130.0050.04012.66
5.3.120.0070.03712.66
5.3.110.0070.03712.66
5.3.100.0070.03512.13
5.3.90.0080.03812.11
5.3.80.0040.03812.09
5.3.70.0050.03712.09
5.3.60.0030.04012.09
5.3.50.0040.03712.02
5.3.40.0060.03612.02
5.3.30.0060.03411.98
5.3.20.0110.03811.77
5.3.10.0050.03911.73
5.3.00.0050.03811.71
5.2.170.0030.0339.21
5.2.160.0030.0319.21
5.2.150.0080.0289.21
5.2.140.0050.0339.22
5.2.130.0020.0359.18
5.2.120.0040.0289.18
5.2.110.0030.0299.18
5.2.100.0060.0289.18
5.2.90.0050.0299.18
5.2.80.0020.0329.18
5.2.70.0070.0279.17
5.2.60.0030.0319.13
5.2.50.0040.0379.10
5.2.40.0020.0319.07
5.2.30.0060.0299.05
5.2.20.0060.0309.04
5.2.10.0090.0268.95
5.2.00.0060.0308.80
5.1.60.0060.0248.09
5.1.50.0040.0248.08
5.1.40.0030.0258.07
5.1.30.0030.0328.42
5.1.20.0040.0268.44
5.1.10.0030.0278.16
5.1.00.0060.0258.16
5.0.50.0020.0226.64
5.0.40.0030.0206.50
5.0.30.0040.0306.31
5.0.20.0040.0216.29
5.0.10.0050.0176.25
5.0.00.0040.0306.25
4.4.90.0020.0164.77
4.4.80.0020.0154.76
4.4.70.0020.0164.76
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0000.0274.71
4.4.30.0030.0164.76
4.4.20.0030.0154.84
4.4.10.0030.0214.85
4.4.00.0050.0244.76
4.3.110.0030.0154.67
4.3.100.0030.0144.66
4.3.90.0010.0164.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0030.0154.63
4.3.50.0030.0154.63
4.3.40.0010.0274.54
4.3.30.0020.0193.30
4.3.20.0030.0153.28
4.3.10.0010.0183.23
4.3.00.0070.01313.71

preferences:
45.07 ms | 401 KiB | 5 Q