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) { $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.0040.01118.31
8.3.50.0140.00621.11
8.3.40.0190.00018.79
8.3.30.0090.00619.27
8.3.20.0080.00020.34
8.3.10.0000.00823.64
8.3.00.0030.00717.63
8.2.180.0130.00616.75
8.2.170.0150.00022.96
8.2.160.0130.00320.57
8.2.150.0100.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0040.00422.11
8.2.110.0050.00520.35
8.2.100.0080.00317.91
8.2.90.0070.00019.08
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0080.00018.03
8.2.50.0040.00418.07
8.2.40.0060.00618.06
8.2.30.0030.00718.02
8.2.20.0040.00417.57
8.2.10.0000.00718.13
8.2.00.0030.00617.73
8.1.280.0120.00625.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0070.00323.91
8.1.230.0060.00620.99
8.1.220.0030.00517.77
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0030.00518.35
8.1.160.0030.00521.99
8.1.150.0040.00418.91
8.1.140.0040.00417.34
8.1.130.0070.00017.39
8.1.120.0050.00317.47
8.1.110.0000.00717.52
8.1.100.0070.00017.36
8.1.90.0040.00417.42
8.1.80.0060.00317.47
8.1.70.0030.00317.50
8.1.60.0060.00317.59
8.1.50.0050.00317.57
8.1.40.0000.00817.48
8.1.30.0050.00317.67
8.1.20.0000.00817.71
8.1.10.0040.00417.48
8.1.00.0040.00417.49
8.0.300.0060.00319.98
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0040.00417.21
8.0.260.0070.00016.84
8.0.250.0000.00717.00
8.0.240.0070.00017.00
8.0.230.0030.00316.96
8.0.220.0070.00016.93
8.0.210.0000.00716.81
8.0.200.0040.00416.95
8.0.190.0030.00616.91
8.0.180.0040.00416.95
8.0.170.0080.00016.84
8.0.160.0030.00516.82
8.0.150.0000.00717.01
8.0.140.0030.00516.90
8.0.130.0000.00613.43
8.0.120.0040.00416.94
8.0.110.0050.00216.88
8.0.100.0000.00716.83
8.0.90.0040.00416.98
8.0.80.0100.00616.86
8.0.70.0070.00017.02
8.0.60.0000.00717.03
8.0.50.0040.00416.98
8.0.30.0110.01017.01
8.0.20.0060.01817.40
8.0.10.0070.00017.20
8.0.00.0130.00816.83
7.4.330.0020.00215.00
7.4.320.0060.00016.51
7.4.300.0030.00316.53
7.4.290.0030.00316.54
7.4.280.0080.00016.52
7.4.270.0030.00316.45
7.4.260.0000.00716.40
7.4.250.0040.00416.46
7.4.240.0020.00516.57
7.4.230.0030.00516.50
7.4.220.0110.00716.44
7.4.210.0070.00716.48
7.4.200.0040.00416.54
7.4.160.0120.00416.42
7.4.150.0080.01717.40
7.4.140.0110.01017.86
7.4.130.0180.00316.69
7.4.120.0070.01116.50
7.4.110.0150.01116.52
7.4.100.0090.00916.55
7.4.90.0060.01216.66
7.4.80.0140.00419.39
7.4.70.0120.00616.59
7.4.60.0060.01316.43
7.4.50.0070.00016.47
7.4.40.0100.00716.52
7.4.30.0060.01216.59
7.4.00.0070.01014.97
7.3.330.0030.00313.26
7.3.320.0060.00013.31
7.3.310.0000.00716.26
7.3.300.0030.00316.32
7.3.290.0030.01116.29
7.3.280.0080.00916.32
7.3.270.0130.00717.40
7.3.260.0030.01316.38
7.3.250.0150.00616.35
7.3.240.0160.00616.46
7.3.230.0110.00816.51
7.3.210.0080.01516.26
7.3.200.0040.01419.39
7.3.190.0170.00616.61
7.3.180.0090.00916.45
7.3.170.0030.01516.45
7.3.160.0100.00716.50
7.3.10.0070.01016.41
7.3.00.0050.00716.56
7.2.330.0110.00716.58
7.2.320.0120.00916.76
7.2.310.0110.00716.46
7.2.300.0040.01316.69
7.2.290.0180.00016.82
7.2.130.0030.00717.02
7.2.120.0060.00816.78
7.2.110.0070.00716.63
7.2.100.0090.00616.81
7.2.90.0050.00916.90
7.2.80.0040.00916.86
7.2.70.0050.00816.91
7.2.60.0080.00616.90
7.2.50.0100.00716.93
7.2.40.0080.00716.84
7.2.30.0020.01217.04
7.2.20.0060.00616.94
7.2.10.0060.00716.89
7.2.00.0050.00917.75
7.1.250.0100.00515.75
7.1.240.0080.00415.89
7.1.230.0080.00415.64
7.1.220.0060.00315.59
7.1.210.0030.00515.86
7.1.200.0100.00315.66
7.1.190.0050.00515.69
7.1.180.0050.00515.79
7.1.170.0030.01015.66
7.1.160.0000.00915.79
7.1.150.0040.01215.77
7.1.140.0090.00015.76
7.1.130.0070.00715.88
7.1.120.0080.00815.66
7.1.110.0040.01115.68
7.1.100.0020.00916.81
7.1.90.0030.00715.82
7.1.80.0030.00715.58
7.1.70.0040.00716.38
7.1.60.0020.01717.57
7.1.50.0100.00716.29
7.1.40.0070.00415.51
7.1.30.0070.00315.89
7.1.20.0100.00315.86
7.1.10.0000.00915.41
7.1.00.0030.04018.91
7.0.330.0110.00015.34
7.0.320.0000.01315.05
7.0.310.0060.00615.14
7.0.300.0080.00015.36
7.0.290.0120.00315.51
7.0.280.0030.00815.33
7.0.270.0130.00015.43
7.0.260.0110.00015.06
7.0.250.0060.00615.45
7.0.240.0030.01015.14
7.0.230.0040.00415.18
7.0.220.0100.00715.41
7.0.210.0070.00715.46
7.0.200.0040.00716.08
7.0.190.0110.00415.51
7.0.180.0070.01015.36
7.0.170.0040.01215.10
7.0.160.0000.01015.42
7.0.150.0040.00715.44
7.0.140.0080.03818.67
7.0.130.0090.00315.15
7.0.120.0060.00615.25
7.0.110.0030.01015.43
7.0.100.0000.00815.14
7.0.90.0070.00415.35
7.0.80.0000.01015.23
7.0.70.0050.00515.44
7.0.60.0030.04317.60
7.0.50.0030.03316.62
7.0.40.0070.04716.90
7.0.30.0250.03816.91
7.0.20.0150.04516.77
7.0.10.0050.02916.92
7.0.00.0120.01716.70
5.6.380.0070.00414.12
5.6.370.0040.00714.20
5.6.360.0080.00314.05
5.6.350.0040.00814.48
5.6.340.0040.00814.55
5.6.330.0070.00714.55
5.6.320.0060.00314.02
5.6.310.0040.00714.29
5.6.300.0030.00914.02
5.6.290.0090.00314.16
5.6.280.0050.03817.75
5.6.270.0040.00814.12
5.6.260.0080.00314.30
5.6.250.0060.00614.31
5.6.240.0000.01114.25
5.6.230.0050.00514.24
5.6.220.0040.00714.32
5.6.210.0070.03717.43
5.6.200.0070.02216.08
5.6.190.0080.02317.27
5.6.180.1950.02917.34
5.6.170.0210.04017.21
5.6.160.0000.03417.25
5.6.150.0120.04216.12
5.6.140.0070.04216.06
5.6.130.0050.02316.11
5.6.120.0070.02217.57
5.6.110.0080.04317.64
5.6.100.0030.04817.56
5.6.90.0030.04217.54
5.6.80.0070.01817.13
5.6.70.2020.01817.24
5.6.60.0050.00513.92
5.6.50.0030.01014.11
5.6.40.0080.00313.99
5.6.30.0060.00313.83
5.6.20.0060.00614.20
5.6.10.0090.00314.20
5.6.00.0030.01014.37
5.5.380.0030.00710.91
5.5.370.0040.00410.90
5.5.360.0050.00310.90
5.5.350.0040.03515.67
5.5.340.0030.04614.54
5.5.330.0070.02815.74
5.5.320.0170.03715.65
5.5.310.0070.03015.57
5.5.300.0030.02314.61
5.5.290.0030.03214.62
5.5.280.0040.02315.96
5.5.270.0070.04716.05
5.5.260.0030.02615.77
5.5.250.0090.03215.78
5.5.240.0170.04015.54
5.5.230.0000.01111.12
5.5.220.0060.00310.92
5.5.210.0030.00310.90
5.5.200.0000.00710.90
5.5.190.0000.00910.98
5.5.180.0070.00410.90
5.5.170.0040.00710.93
5.5.160.0080.00310.90
5.5.150.0030.00610.93
5.5.140.0030.00310.90
5.5.130.0060.00011.14
5.5.120.0080.00011.02
5.5.110.0000.00811.00
5.5.100.0030.00511.16
5.5.90.0000.00810.90
5.5.80.0040.00410.90
5.5.70.0070.00010.90
5.5.60.0000.00710.90
5.5.50.0040.00411.01
5.5.40.0070.00710.95
5.5.30.0040.00711.24
5.5.20.0080.00310.90
5.5.10.0040.00411.17
5.5.00.0090.00310.90
5.4.450.0090.03915.04
5.4.440.0040.03215.16
5.4.430.0100.03715.11
5.4.420.0070.02515.23
5.4.410.0060.03115.11
5.4.400.0020.03414.98
5.4.390.0010.03115.00
5.4.380.0100.03515.00
5.4.370.0020.02915.09
5.4.360.0010.02614.95
5.4.350.0020.04214.95
5.4.340.0060.04014.95
5.4.330.0030.00610.92
5.4.320.0000.03015.20
5.4.310.0120.03514.94
5.4.300.0030.04014.98
5.4.290.0030.03815.07
5.4.280.0060.04115.00
5.4.270.0030.02815.04
5.4.260.0020.02614.94
5.4.250.0030.02514.98
5.4.240.0050.02515.12
5.4.230.0000.04315.07
5.4.220.0100.03615.01
5.4.210.0030.03014.88
5.4.200.0040.03914.93
5.4.190.0040.04115.01
5.4.180.0030.04114.93
5.4.170.0000.04415.02
5.4.160.0020.03715.04
5.4.150.0050.04015.01
5.4.140.0040.03513.63
5.4.130.0050.03913.78
5.4.120.0030.03713.59
5.4.110.0080.02113.58
5.4.100.0020.02913.68
5.4.90.0050.02213.72
5.4.80.0050.03713.58
5.4.70.0050.02213.64
5.4.60.0000.02713.69
5.4.50.0070.02013.73
5.4.40.0050.03013.71
5.4.30.0030.02813.69
5.4.20.0020.02513.53
5.4.10.0060.03813.66
5.4.00.0020.04013.34
5.3.290.0020.02612.74
5.3.280.0020.02512.80
5.3.270.0030.03812.83
5.3.260.0050.03512.78
5.3.250.0020.03812.79
5.3.240.0030.03512.71
5.3.230.0030.03512.79
5.3.220.0050.03312.73
5.3.210.0050.03712.76
5.3.200.0020.03512.69
5.3.190.0020.03412.72
5.3.180.0030.02312.76
5.3.170.0020.03412.72
5.3.160.0020.03312.84
5.3.150.0070.03312.77
5.3.140.0070.02212.77
5.3.130.0070.03812.71
5.3.120.0050.04112.76
5.3.110.0020.03212.69
5.3.100.0070.03612.47
5.3.90.0020.04212.48
5.3.80.0050.03812.42
5.3.70.0070.03512.42
5.3.60.0000.04212.51
5.3.50.0020.02512.48
5.3.40.0050.03312.42
5.3.30.0040.03812.45
5.3.20.0070.03212.28
5.3.10.0030.02512.33
5.3.00.0050.02512.22
5.2.170.0020.03511.47
5.2.160.0030.03211.47
5.2.150.0070.02511.47
5.2.140.0020.03311.47
5.2.130.0000.03111.47
5.2.120.0030.03511.47
5.2.110.0050.03011.47
5.2.100.0050.03011.47
5.2.90.0000.03311.47
5.2.80.0000.03611.47
5.2.70.0090.02011.47
5.2.60.0020.02211.47
5.2.50.0030.03211.47
5.2.40.0050.02811.47
5.2.30.0020.03311.47
5.2.20.0040.01811.47
5.2.10.0060.02011.47
5.2.00.0080.02311.47
5.1.60.0020.02911.47
5.1.50.0020.02311.47
5.1.40.0020.02411.47
5.1.30.0020.03211.47
5.1.20.0020.01811.47
5.1.10.0020.03011.47
5.1.00.0050.02311.47
5.0.50.0000.02711.47
5.0.40.0030.02011.47
5.0.30.0050.03311.47
5.0.20.0030.02511.47
5.0.10.0030.01211.47
5.0.00.0030.01411.47
4.4.90.0000.01211.47
4.4.80.0020.01611.47
4.4.70.0000.01711.47
4.4.60.0010.00911.47
4.4.50.0030.01711.47
4.4.40.0050.02711.47
4.4.30.0050.01511.47
4.4.20.0020.00911.47
4.4.10.0040.01811.47
4.4.00.0000.02211.47
4.3.110.0010.01311.47
4.3.100.0020.01511.47
4.3.90.0020.01911.47
4.3.80.0000.01611.47
4.3.70.0020.01311.47
4.3.60.0020.01711.47
4.3.50.0030.01311.47
4.3.40.0020.02611.47
4.3.30.0020.01911.47
4.3.20.0020.01311.47
4.3.10.0020.01311.47
4.3.00.0030.01911.47

preferences:
36.72 ms | 401 KiB | 5 Q