3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $m; public function __destruct() { throw new Exception('destruct A'); } } class B { public function abc() { $a = new A(); } public function __destruct() { throw new Exception('destruct B'); } } try { $b = new B(); try { $b->abc(); } catch (Exception $e) { echo $e->getMessage(); } # unset($b); } catch (Exception $e) { echo $e->getMessage(); } ?>

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.40.0040.01118.82
8.3.30.0100.00719.09
8.3.20.0070.00020.16
8.3.10.0050.00323.68
8.3.00.0050.00319.38
8.2.170.0070.01422.96
8.2.160.0100.00720.57
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00222.12
8.2.110.0040.00422.23
8.2.100.0070.00417.84
8.2.90.0000.01019.13
8.2.80.0000.00817.97
8.2.70.0110.00617.24
8.2.60.0000.00919.65
8.2.50.0060.00318.07
8.2.40.0000.00919.82
8.2.30.0040.00419.72
8.2.20.0040.00417.62
8.2.10.0040.00417.93
8.2.00.0070.00417.66
8.1.270.0000.00823.96
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0040.00818.97
8.1.220.0040.00417.78
8.1.210.0000.00718.77
8.1.200.0030.00617.35
8.1.190.0080.00017.13
8.1.180.0000.00918.10
8.1.170.0040.00418.70
8.1.160.0000.00821.94
8.1.150.0100.00018.63
8.1.140.0020.00517.46
8.1.130.0030.00317.83
8.1.120.0040.00417.38
8.1.110.0040.00417.34
8.1.100.0000.00817.38
8.1.90.0000.00717.46
8.1.80.0000.00817.49
8.1.70.0000.00717.34
8.1.60.0040.00417.47
8.1.50.0000.00917.44
8.1.40.0000.00817.54
8.1.30.0040.00417.56
8.1.20.0000.00817.63
8.1.10.0030.00517.54
8.1.00.0080.00017.52
8.0.300.0000.00819.11
8.0.290.0060.00317.04
8.0.280.0030.00318.37
8.0.270.0000.00717.18
8.0.260.0030.00517.26
8.0.250.0070.00017.09
8.0.240.0030.00317.04
8.0.230.0040.00416.87
8.0.220.0000.00716.79
8.0.210.0030.00316.85
8.0.200.0000.00616.85
8.0.190.0000.00816.89
8.0.180.0000.00716.85
8.0.170.0070.00016.80
8.0.160.0030.00316.86
8.0.150.0040.00416.91
8.0.140.0050.00316.92
8.0.130.0030.00313.32
8.0.120.0050.00316.85
8.0.110.0000.00716.79
8.0.100.0040.00416.73
8.0.90.0000.00716.79
8.0.80.0100.00616.92
8.0.70.0000.00716.85
8.0.60.0040.00416.93
8.0.50.0030.00517.00
8.0.30.0090.00916.95
8.0.20.0100.00917.40
8.0.10.0000.00717.12
8.0.00.0060.01116.79
7.4.330.0030.00315.05
7.4.320.0000.00616.61
7.4.300.0060.00016.66
7.4.290.0040.00416.59
7.4.280.0040.00416.51
7.4.270.0070.00016.42
7.4.260.0070.00016.52
7.4.250.0080.00016.58
7.4.240.0040.00316.59
7.4.230.0030.00316.39
7.4.220.0110.00716.51
7.4.210.0050.01116.55
7.4.200.0030.00316.55
7.4.190.0050.00216.67
7.4.160.0120.00316.45
7.4.150.0070.01017.40
7.4.140.0080.00917.86
7.4.130.0080.00916.52
7.4.120.0130.00416.46
7.4.110.0100.01516.68
7.4.100.0060.01216.63
7.4.90.0070.01016.58
7.4.80.0030.01319.39
7.4.70.0100.00716.73
7.4.60.0120.00616.62
7.4.50.0030.00316.65
7.4.40.0030.01322.77
7.4.30.0090.00616.39
7.4.00.0040.01414.74
7.3.330.0000.00513.32
7.3.320.0000.00513.23
7.3.310.0030.00316.37
7.3.300.0000.00616.32
7.3.290.0140.00716.29
7.3.280.0090.00816.37
7.3.270.0130.00317.40
7.3.260.0080.00916.46
7.3.250.0100.00716.35
7.3.240.0110.00516.46
7.3.230.0120.00416.39
7.3.210.0100.01016.63
7.3.200.0140.01019.39
7.3.190.0110.01116.49
7.3.180.0080.00816.52
7.3.170.0060.01316.63
7.3.160.0090.00616.38
7.3.120.0030.01314.85
7.3.10.0060.00916.55
7.3.00.0030.00916.38
7.2.330.0190.00316.40
7.2.320.0100.00716.60
7.2.310.0090.00916.48
7.2.300.0080.00816.79
7.2.290.0110.00716.35
7.2.130.0140.00616.67
7.2.120.0090.00616.87
7.2.110.0150.00616.88
7.2.100.0070.00516.86
7.2.90.0060.00316.91
7.2.80.0030.01016.69
7.2.70.0030.00716.54
7.2.60.0040.01016.77
7.2.50.0090.01216.73
7.2.40.0090.00316.75
7.2.30.0040.00816.79
7.2.20.0050.00616.90
7.2.10.0000.01116.93
7.2.00.0040.01118.10
7.1.250.0060.00315.78
7.1.200.0030.01015.78
7.1.100.0070.00718.16
7.1.70.0040.00416.88
7.1.60.0070.01719.46
7.1.50.0090.00916.72
7.1.00.0100.07022.31
7.0.200.0340.00314.67
7.0.140.0000.07722.21
7.0.60.0070.05719.77
7.0.50.0030.06017.87
7.0.40.0100.08020.30
7.0.30.0500.07020.34
7.0.20.0370.07320.24
7.0.10.0070.04020.16
7.0.00.0030.04020.19
5.6.280.0000.07721.09
5.6.210.0100.08020.63
5.6.200.0030.08318.16
5.6.190.0030.04320.57
5.6.180.0100.08020.42
5.6.170.0100.04720.48
5.6.160.0070.08320.50
5.6.150.0000.06718.19
5.6.140.0070.08018.18
5.6.130.0030.08018.28
5.6.120.0130.07021.00
5.6.110.0030.07720.97
5.6.100.0030.04321.05
5.6.90.0100.04021.13
5.6.80.0070.07720.39
5.5.350.0100.07720.50
5.5.340.0170.03718.05
5.5.330.0100.08720.29
5.5.320.0100.04720.36
5.5.310.0230.04720.51
5.5.300.0030.04018.08
5.5.290.0000.04717.95
5.5.280.0130.07720.94
5.5.270.0100.08020.80
5.5.260.0030.08720.85
5.5.250.0100.04720.62
5.5.240.0230.03720.27
5.4.450.0730.06319.42
5.4.440.0530.07019.39
5.4.430.0130.05019.27
5.4.420.0770.05019.11
5.4.410.0000.06319.51
5.4.400.0570.06019.03
5.4.390.0770.05019.09
5.4.380.0230.05018.48
5.4.370.0230.05318.53
5.4.360.0330.04018.51
5.4.350.0500.06318.75
5.4.340.0370.04718.78
5.4.320.0080.04312.50
5.4.310.0070.03612.50
5.4.300.0080.03812.51
5.4.290.0060.04012.49
5.4.280.0110.04212.38
5.4.270.0140.05012.39
5.4.260.0150.03012.38
5.4.250.0110.03912.38
5.4.240.0080.03712.38
5.4.230.0060.04112.38
5.4.220.0080.03612.37
5.4.210.0050.04412.38
5.4.200.0060.06112.38
5.4.190.0130.05312.37
5.4.180.0160.05512.37
5.4.170.0170.07412.38
5.4.160.0160.05812.38
5.4.150.0150.06012.38
5.4.140.0170.06412.05
5.4.130.0100.04812.05
5.4.120.0090.03812.00
5.4.110.0110.05912.00
5.4.100.0120.07212.00
5.4.90.0080.03912.00
5.4.80.0040.04212.00
5.4.70.0090.03912.00
5.4.60.0190.09611.99
5.4.50.0160.08612.00
5.4.40.0070.04611.98
5.4.30.0080.05311.98
5.4.20.0050.04011.98
5.4.10.0070.03611.98
5.4.00.0070.03611.46
5.3.290.0100.04212.80
5.3.280.0090.04012.71
5.3.270.0090.04912.73
5.3.260.0040.05912.72
5.3.250.0090.04712.72
5.3.240.0080.05412.72
5.3.230.0100.06312.71
5.3.220.0060.05512.68
5.3.210.0090.05712.68
5.3.200.0120.05012.68
5.3.190.0080.03712.68
5.3.180.0070.03612.67
5.3.170.0110.05012.67
5.3.160.0080.03912.67
5.3.150.0080.04012.68
5.3.140.0040.04012.66
5.3.130.0060.04612.66
5.3.120.0090.04412.66
5.3.110.0100.04112.66
5.3.100.0080.04112.13
5.3.90.0070.04512.11
5.3.80.0090.04612.10
5.3.70.0090.06112.10
5.3.60.0090.04712.08
5.3.50.0040.04312.04
5.3.40.0040.03712.04
5.3.30.0100.05711.99
5.3.20.0080.05211.77
5.3.10.0140.07511.73
5.3.00.0100.07011.72
5.2.170.0110.0819.23
5.2.160.0070.0349.23
5.2.150.0070.0319.23
5.2.140.0030.0369.23
5.2.130.0050.0309.19
5.2.120.0030.0339.19
5.2.110.0070.0369.20
5.2.100.0060.0289.19
5.2.90.0080.0279.18
5.2.80.0040.0339.19
5.2.70.0040.0459.19
5.2.60.0070.0379.14
5.2.50.0060.0369.10
5.2.40.0040.0389.08
5.2.30.0060.0349.06
5.2.20.0070.0309.04
5.2.10.0080.0268.95
5.2.00.0070.0298.82
5.1.60.0070.0328.10
5.1.50.0040.0358.09
5.1.40.0060.0298.07
5.1.30.0030.0288.43
5.1.20.0050.0278.45
5.1.10.0100.0268.17
5.1.00.0090.0298.17
5.0.50.0180.0376.66
5.0.40.0030.0226.50
5.0.30.0060.0336.32
5.0.20.0020.0226.29
5.0.10.0060.0206.26
5.0.00.0050.0306.25
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0030.0214.75
4.4.60.0040.0154.75
4.4.50.0040.0154.77
4.4.40.0010.0274.71
4.4.30.0030.0224.76
4.4.20.0030.0204.84
4.4.10.0020.0174.85
4.4.00.0030.0254.76
4.3.110.0040.0154.67
4.3.100.0040.0144.66
4.3.90.0010.0164.63
4.3.80.0040.0234.59
4.3.70.0030.0154.63
4.3.60.0040.0144.63
4.3.50.0030.0174.63
4.3.40.0030.0334.54
4.3.30.0020.0223.30
4.3.20.0060.0223.28
4.3.10.0080.0333.24
4.3.00.0270.02710.55

preferences:
47.41 ms | 400 KiB | 5 Q