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 { try { { $b = new B(); try { $b->abc(); } catch (Exception $e) { echo $e->getMessage(); } unset($b); } } catch (Exception $e) { echo $e->getMessage(); } } 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.0000.01516.50
8.3.50.0110.00521.93
8.3.40.0070.00718.87
8.3.30.0100.00319.18
8.3.20.0050.00220.33
8.3.10.0050.00223.48
8.3.00.0060.00319.38
8.2.180.0110.00716.63
8.2.170.0070.00722.96
8.2.160.0100.00720.37
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0060.00322.26
8.2.110.0060.01222.04
8.2.100.0100.00017.91
8.2.90.0100.00019.04
8.2.80.0030.00517.97
8.2.70.0000.01117.50
8.2.60.0030.00517.80
8.2.50.0000.00918.07
8.2.40.0050.00319.82
8.2.30.0000.00819.84
8.2.20.0030.00617.80
8.2.10.0040.00418.11
8.2.00.0030.00917.63
8.1.280.0090.00625.92
8.1.270.0030.00523.91
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0060.00323.88
8.1.230.0000.01019.01
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00417.13
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0050.00318.39
8.1.160.0000.00722.03
8.1.150.0000.00918.64
8.1.140.0030.00617.46
8.1.130.0050.00317.73
8.1.120.0000.00717.49
8.1.110.0030.00517.35
8.1.100.0000.00717.32
8.1.90.0040.00417.46
8.1.80.0040.00417.38
8.1.70.0080.00017.44
8.1.60.0000.00917.59
8.1.50.0040.00417.39
8.1.40.0000.00817.45
8.1.30.0060.00317.63
8.1.20.0040.00417.58
8.1.10.0080.00017.61
8.1.00.0040.00417.45
8.0.300.0040.00420.79
8.0.290.0050.00317.18
8.0.280.0030.00518.39
8.0.270.0030.00317.19
8.0.260.0050.00217.20
8.0.250.0030.00316.87
8.0.240.0030.00316.95
8.0.230.0030.00516.84
8.0.220.0070.00016.93
8.0.210.0000.00716.95
8.0.200.0040.00416.94
8.0.190.0040.00416.93
8.0.180.0000.00816.82
8.0.170.0050.00216.98
8.0.160.0070.00016.83
8.0.150.0030.00516.76
8.0.140.0040.00416.87
8.0.130.0000.00613.38
8.0.120.0000.00716.79
8.0.110.0070.00016.98
8.0.100.0040.00416.77
8.0.90.0040.00416.81
8.0.80.0120.00316.85
8.0.70.0000.00716.75
8.0.60.0030.00516.90
8.0.50.0050.00316.81
8.0.30.0130.01017.04
8.0.20.0130.00717.42
8.0.10.0030.00517.13
8.0.00.0110.00616.79
7.4.330.0050.00015.14
7.4.320.0030.00316.66
7.4.300.0030.00316.53
7.4.290.0030.00316.64
7.4.280.0050.00316.47
7.4.270.0040.00416.40
7.4.260.0030.00316.48
7.4.250.0070.00016.45
7.4.240.0040.00416.46
7.4.230.0030.00316.53
7.4.220.0140.00316.63
7.4.210.0060.01016.55
7.4.200.0040.00416.53
7.4.190.0030.00516.40
7.4.160.0160.00616.43
7.4.150.0120.01217.40
7.4.140.0130.00817.86
7.4.130.0100.00716.56
7.4.120.0090.00716.50
7.4.110.0080.00916.64
7.4.100.0060.01216.47
7.4.90.0060.01216.44
7.4.80.0170.00019.39
7.4.70.0030.01316.62
7.4.60.0070.01016.18
7.4.50.0030.00616.49
7.4.40.0030.01022.77
7.4.30.0100.00716.50
7.4.00.0000.01415.14
7.3.330.0000.00513.37
7.3.320.0030.00313.38
7.3.310.0070.00016.41
7.3.300.0000.00716.18
7.3.290.0060.01016.38
7.3.280.0130.00716.39
7.3.270.0150.00917.40
7.3.260.0090.00916.39
7.3.250.0060.01416.33
7.3.240.0000.01616.57
7.3.230.0100.00716.39
7.3.210.0120.00616.44
7.3.200.0130.01019.39
7.3.190.0030.01516.30
7.3.180.0160.00016.29
7.3.170.0300.01416.41
7.3.160.0070.01316.37
7.3.120.0000.01514.84
7.2.330.0140.01316.81
7.2.320.0090.01216.55
7.2.310.0090.00916.70
7.2.300.0100.00716.57
7.2.290.0070.01016.71
7.2.60.0100.00017.03
7.2.00.0220.00619.25
7.1.200.0060.00615.66
7.1.100.0130.00718.27
7.1.70.0030.01317.10
7.1.60.0060.01919.46
7.1.50.0100.01016.83
7.1.00.0100.07322.45
7.0.200.0230.00014.75
7.0.140.0070.07021.95
7.0.60.0100.07721.55
7.0.50.0230.06317.86
7.0.40.0100.07320.13
7.0.30.0200.05320.33
7.0.20.0270.08020.24
7.0.10.0130.06720.30
7.0.00.0070.08720.23
5.6.280.0030.07320.82
5.6.210.0070.06320.69
5.6.200.0000.07718.18
5.6.190.0070.07320.64
5.6.180.0000.04020.57
5.6.170.0300.07320.57
5.6.160.0070.08320.50
5.6.150.0100.04318.18
5.6.140.0070.08018.18
5.6.130.0030.04318.18
5.6.120.0130.07021.05
5.6.110.0070.06320.98
5.6.100.0070.06721.14
5.6.90.0170.07320.98
5.6.80.0070.07720.38
5.5.350.3930.04020.45
5.5.340.0070.07717.95
5.5.330.0130.04020.43
5.5.320.0030.04720.27
5.5.310.0300.06720.38
5.5.300.0070.07717.98
5.5.290.0030.08317.98
5.5.280.0100.08320.90
5.5.270.0070.04320.84
5.5.260.0000.06020.87
5.5.250.0000.09320.69
5.5.240.0330.06020.16
5.4.450.0130.05319.57
5.4.440.0030.06319.50
5.4.430.0200.05319.25
5.4.420.0100.05719.28
5.4.410.0230.04019.28
5.4.400.0100.05719.03
5.4.390.0300.05319.21
5.4.380.0370.05318.57
5.4.370.0230.05318.53
5.4.360.0670.05018.53
5.4.350.0400.05718.59
5.4.340.0300.05718.78
5.4.320.0030.04512.50
5.4.310.0060.04612.50
5.4.300.0070.03612.50
5.4.290.0090.06012.48
5.4.280.0070.04712.38
5.4.270.0050.04012.38
5.4.260.0070.04212.38
5.4.250.0100.03812.38
5.4.240.0090.03712.38
5.4.230.0060.04812.37
5.4.220.0110.04012.38
5.4.210.0120.04912.37
5.4.200.0100.04012.38
5.4.190.0100.04912.37
5.4.180.0060.03812.37
5.4.170.0070.04712.38
5.4.160.0070.05712.38
5.4.150.0130.07312.38
5.4.140.0100.05112.06
5.4.130.0120.05112.05
5.4.120.0150.06312.00
5.4.110.0080.05912.00
5.4.100.0090.03612.00
5.4.90.0070.04012.00
5.4.80.0100.03712.00
5.4.70.0090.03412.00
5.4.60.0120.05212.00
5.4.50.0110.07112.00
5.4.40.0090.11311.98
5.4.30.0150.07711.98
5.4.20.0080.05211.98
5.4.10.0220.05711.98
5.4.00.0100.07211.47
5.3.290.0060.04312.80
5.3.280.0140.07512.71
5.3.270.0080.09712.72
5.3.260.0240.06712.72
5.3.250.0180.04912.72
5.3.240.0190.06612.72
5.3.230.0180.08712.71
5.3.220.0110.08812.68
5.3.210.0090.05512.68
5.3.200.0130.05512.68
5.3.190.0170.06912.67
5.3.180.0070.04312.68
5.3.170.0080.05312.66
5.3.160.0160.07512.67
5.3.150.0040.05312.67
5.3.140.0210.07512.66
5.3.130.0130.06312.66
5.3.120.0180.10012.66
5.3.110.0340.06912.66
5.3.100.0120.07312.12
5.3.90.0100.07112.10
5.3.80.0110.04212.09
5.3.70.0140.04412.10
5.3.60.0070.04712.08
5.3.50.0200.07412.03
5.3.40.0160.07412.03
5.3.30.0240.08611.99
5.3.20.0110.05411.77
5.3.10.0060.05211.73
5.3.00.0160.08311.72
5.2.170.0130.0789.23
5.2.160.0110.0409.23
5.2.150.0150.0659.23
5.2.140.0110.0349.22
5.2.130.0050.0449.18
5.2.120.0070.0469.19
5.2.110.0080.0499.19
5.2.100.0050.0389.18
5.2.90.0130.0529.18
5.2.80.0270.1019.18
5.2.70.0030.0499.18
5.2.60.0070.0439.13
5.2.50.0030.0359.10
5.2.40.0090.0319.07
5.2.30.0070.0379.06
5.2.20.0020.0359.05
5.2.10.0060.0308.95
5.2.00.0050.0328.81
5.1.60.0100.0318.09
5.1.50.0060.0278.09
5.1.40.0060.0308.07
5.1.30.0080.0278.42
5.1.20.0100.0368.45
5.1.10.0050.0368.17
5.1.00.0080.0388.17
5.0.50.0040.0336.65
5.0.40.0050.0306.51
5.0.30.0070.0436.33
5.0.20.0200.0616.29
5.0.10.0060.0276.26
5.0.00.0110.0916.25
4.4.90.0060.0254.78
4.4.80.0070.0384.75
4.4.70.0040.0424.76
4.4.60.0060.0374.75
4.4.50.0050.0154.77
4.4.40.0040.0284.71
4.4.30.0060.0194.76
4.4.20.0100.0484.84
4.4.10.0060.0244.85
4.4.00.0100.0514.76
4.3.110.0070.0214.67
4.3.100.0040.0244.67
4.3.90.0060.0154.63
4.3.80.0050.0254.59
4.3.70.0040.0164.63
4.3.60.0060.0184.63
4.3.50.0040.0214.63
4.3.40.0070.0444.54
4.3.30.0070.0273.30
4.3.20.0020.0413.28
4.3.10.0030.0203.24
4.3.00.0300.01710.55

preferences:
36.25 ms | 400 KiB | 5 Q