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.60.0130.00718.55
8.3.50.0180.01021.97
8.3.40.0090.00618.79
8.3.30.0140.00018.93
8.3.20.0070.00020.30
8.3.10.0040.00423.71
8.3.00.0040.00419.26
8.2.180.0090.00618.54
8.2.170.0140.00422.96
8.2.160.0100.00720.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0000.00722.24
8.2.110.0040.00721.12
8.2.100.0000.01217.97
8.2.90.0080.00019.08
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0000.00819.95
8.2.30.0000.00919.96
8.2.20.0040.00417.79
8.2.10.0050.00218.11
8.2.00.0070.00617.81
8.1.280.0070.00725.92
8.1.270.0000.00823.84
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0050.00521.35
8.1.230.0110.00017.42
8.1.220.0040.00417.77
8.1.210.0060.00318.77
8.1.200.0000.01117.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00421.93
8.1.150.0030.00618.64
8.1.140.0050.00217.49
8.1.130.0000.00717.86
8.1.120.0030.00317.50
8.1.110.0080.00017.32
8.1.100.0040.00417.33
8.1.90.0000.00817.36
8.1.80.0040.00417.39
8.1.70.0040.00417.42
8.1.60.0080.00017.63
8.1.50.0050.00317.48
8.1.40.0060.00317.57
8.1.30.0030.00617.64
8.1.20.0060.00317.65
8.1.10.0040.00417.63
8.1.00.0000.00917.40
8.0.300.0030.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.41
8.0.270.0040.00417.25
8.0.260.0030.00317.26
8.0.250.0040.00417.04
8.0.240.0030.00317.09
8.0.230.0000.00716.99
8.0.220.0080.00016.79
8.0.210.0000.00716.85
8.0.200.0030.00316.95
8.0.190.0090.00016.98
8.0.180.0000.00716.91
8.0.170.0050.00316.93
8.0.160.0000.00716.81
8.0.150.0020.00516.90
8.0.140.0050.00216.82
8.0.130.0000.00613.39
8.0.120.0000.00716.81
8.0.110.0040.00416.79
8.0.100.0050.00217.03
8.0.90.0040.00416.98
8.0.80.0040.01117.01
8.0.70.0000.00716.83
8.0.60.0000.00716.92
8.0.50.0070.00016.91
8.0.30.0080.01116.88
8.0.20.0180.00617.40
8.0.10.0040.00416.95
8.0.00.0070.01116.73
7.4.330.0000.00515.06
7.4.320.0000.00716.61
7.4.300.0030.00316.46
7.4.290.0000.00716.46
7.4.280.0070.00016.59
7.4.270.0000.00716.62
7.4.260.0000.00716.54
7.4.250.0060.00316.57
7.4.240.0000.00716.54
7.4.230.0070.00016.50
7.4.220.0140.00316.40
7.4.210.0110.00416.59
7.4.200.0000.00716.61
7.4.190.0000.00716.78
7.4.160.0120.00616.30
7.4.150.0170.00017.40
7.4.140.0070.01417.86
7.4.130.0090.00916.48
7.4.120.0080.01016.49
7.4.110.0140.00316.73
7.4.100.0150.00716.67
7.4.90.0080.00816.65
7.4.80.0060.01019.39
7.4.70.0080.00816.50
7.4.60.0040.01216.55
7.4.50.0030.00616.45
7.4.40.0060.00922.77
7.4.30.0090.00616.50
7.4.00.0070.01114.80
7.3.330.0030.00313.31
7.3.320.0030.00313.36
7.3.310.0040.00416.36
7.3.300.0040.00416.23
7.3.290.0060.01316.49
7.3.280.0090.00916.34
7.3.270.0110.00517.40
7.3.260.0030.01616.36
7.3.250.0100.00916.34
7.3.240.0030.01316.56
7.3.230.0070.01016.39
7.3.210.0100.00716.52
7.3.200.0130.01319.39
7.3.190.0100.00716.41
7.3.180.0060.00916.40
7.3.170.0070.01016.38
7.3.160.0090.00616.34
7.3.120.0070.00714.88
7.2.330.0090.01516.71
7.2.320.0080.00816.69
7.2.310.0100.01116.41
7.2.300.0070.01516.67
7.2.290.0070.01016.41
7.2.60.0050.00517.11
7.2.00.0040.00819.46
7.1.200.0000.01415.62
7.1.100.0070.01417.71
7.1.70.0030.00516.98
7.1.60.0060.01919.46
7.1.50.0060.01816.72
7.1.00.0070.06722.57
7.0.200.0060.00614.84
7.0.140.0030.07021.96
7.0.60.0030.06020.00
7.0.50.0030.07317.83
7.0.40.0200.07720.11
7.0.30.0100.04720.14
7.0.20.0330.07320.10
7.0.10.0070.05020.12
7.0.00.0170.07320.08
5.6.280.0030.07321.13
5.6.210.0070.05320.55
5.6.200.0030.08318.22
5.6.190.0070.06720.77
5.6.180.0000.06020.47
5.6.170.0200.08020.52
5.6.160.0100.08020.52
5.6.150.0130.03018.15
5.6.140.0070.04018.23
5.6.130.0030.08018.19
5.6.120.0100.04721.00
5.6.110.0030.07320.99
5.6.100.0130.06721.01
5.6.90.0100.07321.11
5.6.80.0100.04020.41
5.5.350.0030.08320.40
5.5.340.0030.04017.98
5.5.330.0030.04020.21
5.5.320.0130.05320.34
5.5.310.0270.06720.32
5.5.300.0000.05718.03
5.5.290.0070.05317.93
5.5.280.0170.07320.87
5.5.270.0070.05320.80
5.5.260.0170.07020.80
5.5.250.0070.07720.69
5.5.240.0200.05320.37
5.4.450.0700.06319.42
5.4.440.0770.05719.14
5.4.430.0130.05719.27
5.4.420.0570.06019.41
5.4.410.0830.05019.43
5.4.400.0170.05719.12
5.4.390.0300.07718.81
5.4.380.0300.05318.73
5.4.370.0330.05318.56
5.4.360.0300.04718.78
5.4.350.0300.06018.75
5.4.340.0230.06018.57
5.4.320.0050.04112.50
5.4.310.0090.04312.50
5.4.300.0110.03712.51
5.4.290.0180.08612.48
5.4.280.0130.05712.38
5.4.270.0110.05212.38
5.4.260.0120.06012.38
5.4.250.0110.05712.38
5.4.240.0080.04112.38
5.4.230.0070.04012.37
5.4.220.0080.03812.37
5.4.210.0100.03612.38
5.4.200.0070.04112.37
5.4.190.0060.04012.38
5.4.180.0080.04312.37
5.4.170.0080.06212.38
5.4.160.0110.05812.38
5.4.150.0070.04412.37
5.4.140.0060.06612.06
5.4.130.0130.04012.05
5.4.120.0180.05812.00
5.4.110.0090.04712.00
5.4.100.0110.05812.00
5.4.90.0100.06712.00
5.4.80.0120.04512.00
5.4.70.0110.04712.00
5.4.60.0080.04612.00
5.4.50.0050.05412.00
5.4.40.0080.04811.98
5.4.30.0110.03611.98
5.4.20.0080.03411.98
5.4.10.0070.03611.98
5.4.00.0060.04011.47
5.3.290.0100.04812.80
5.3.280.0080.03912.71
5.3.270.0100.05412.73
5.3.260.0140.05012.72
5.3.250.0080.04912.72
5.3.240.0130.05412.72
5.3.230.0150.05412.71
5.3.220.0230.08012.68
5.3.210.0090.05212.68
5.3.200.0080.05112.68
5.3.190.0100.05412.68
5.3.180.0100.05112.67
5.3.170.0070.05412.67
5.3.160.0070.05412.68
5.3.150.0050.04512.67
5.3.140.0050.04112.66
5.3.130.0070.04112.66
5.3.120.0060.04212.66
5.3.110.0070.04012.66
5.3.100.0090.04112.13
5.3.90.0090.03612.11
5.3.80.0060.03812.10
5.3.70.0060.03912.09
5.3.60.0070.03812.08
5.3.50.0070.04412.04
5.3.40.0070.05312.04
5.3.30.0090.04711.99
5.3.20.0120.04311.77
5.3.10.0070.04811.73
5.3.00.0110.06611.72
5.2.170.0080.0399.23
5.2.160.0100.0419.23
5.2.150.0060.0449.23
5.2.140.0070.0419.23
5.2.130.0100.0369.18
5.2.120.0090.0279.19
5.2.110.0060.0319.19
5.2.100.0070.0289.18
5.2.90.0060.0309.19
5.2.80.0060.0319.18
5.2.70.0040.0359.18
5.2.60.0100.0389.13
5.2.50.0060.0469.10
5.2.40.0060.0379.07
5.2.30.0060.0299.05
5.2.20.0080.0419.04
5.2.10.0080.0438.95
5.2.00.0070.0428.81
5.1.60.0070.0368.09
5.1.50.0060.0378.09
5.1.40.0080.0358.07
5.1.30.0070.0378.43
5.1.20.0080.0268.45
5.1.10.0050.0308.17
5.1.00.0070.0258.17
5.0.50.0060.0206.65
5.0.40.0060.0186.50
5.0.30.0020.0346.32
5.0.20.0040.0206.29
5.0.10.0050.0196.26
5.0.00.0030.0336.25
4.4.90.0040.0154.78
4.4.80.0040.0154.75
4.4.70.0060.0134.76
4.4.60.0050.0144.75
4.4.50.0020.0174.77
4.4.40.0040.0254.71
4.4.30.0020.0174.76
4.4.20.0020.0184.85
4.4.10.0020.0184.85
4.4.00.0040.0254.76
4.3.110.0020.0184.67
4.3.100.0040.0154.67
4.3.90.0020.0174.63
4.3.80.0020.0264.58
4.3.70.0050.0144.63
4.3.60.0040.0144.63
4.3.50.0020.0174.63
4.3.40.0010.0274.54
4.3.30.0030.0163.30
4.3.20.0010.0183.28
4.3.10.0020.0223.24
4.3.00.0100.02010.55

preferences:
46.27 ms | 401 KiB | 5 Q