3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooBar { public function __destruct() { var_dump('I\'m Dead!!!'); } } $foo = new FooBar(); $getter = function () { return $this; }; $closure = $getter->bindTo($foo); $reflection = new ReflectionFunction($closure); unset($closure, $foo); unset($reflection); var_dump('Unset!!!'); //var_dump($reflection->getClosureThis()); var_dump('Done!!!');

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.0070.01118.20
8.3.50.0090.00921.94
8.3.40.0070.00718.72
8.3.30.0090.00619.09
8.3.20.0070.00020.39
8.3.10.0040.00423.53
8.3.00.0040.00419.08
8.2.180.0040.01116.38
8.2.170.0070.00722.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.78
8.2.110.0040.00422.30
8.2.100.0000.01117.78
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0080.00018.09
8.2.30.0000.00718.25
8.2.20.0030.00717.70
8.2.10.0070.00018.06
8.2.00.0000.00817.68
8.1.280.0100.00725.92
8.1.270.0090.00023.79
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00523.88
8.1.230.0070.00319.01
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0030.00617.25
8.1.180.0040.00418.10
8.1.170.0050.00318.56
8.1.160.0000.00722.08
8.1.150.0000.00920.48
8.1.140.0090.00017.39
8.1.130.0030.00617.81
8.1.120.0000.00817.37
8.1.110.0050.00317.46
8.1.100.0000.00717.48
8.1.90.0050.00317.49
8.1.80.0070.00017.43
8.1.70.0030.00517.34
8.1.60.0000.00817.57
8.1.50.0040.00417.53
8.1.40.0050.00517.57
8.1.30.0080.00017.58
8.1.20.0050.00217.63
8.1.10.0040.00417.47
8.1.00.0070.00017.53
8.0.300.0030.00518.77
8.0.290.0000.00716.75
8.0.280.0070.00018.38
8.0.270.0000.00717.20
8.0.260.0000.00717.19
8.0.250.0000.00716.94
8.0.240.0030.00316.88
8.0.230.0040.00416.93
8.0.220.0030.00316.84
8.0.210.0070.00016.82
8.0.200.0000.00716.95
8.0.190.0080.00016.82
8.0.180.0040.00416.82
8.0.170.0040.00416.88
8.0.160.0030.00316.86
8.0.150.0000.00716.79
8.0.140.0000.00716.89
8.0.130.0000.00513.41
8.0.120.0040.00416.76
8.0.110.0020.00516.85
8.0.100.0070.00016.84
8.0.90.0000.00716.78
8.0.80.0160.00016.92
8.0.70.0000.00816.95
8.0.60.0070.00016.77
8.0.50.0000.00716.74
8.0.30.0140.00316.93
8.0.20.0130.00617.40
8.0.10.0070.00016.79
8.0.00.0100.01416.64
7.4.330.0000.00515.00
7.4.320.0030.00316.61
7.4.300.0000.01016.61
7.4.290.0030.00316.65
7.4.280.0080.00316.55
7.4.270.0000.00716.43
7.4.260.0000.00716.47
7.4.250.0000.00716.57
7.4.240.0020.00516.56
7.4.230.0070.00016.70
7.4.220.0130.00716.53
7.4.210.0030.01016.53
7.4.200.0040.00416.48
7.4.190.0030.00316.56
7.4.160.0100.00616.50
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0120.00516.54
7.4.120.0070.00916.40
7.4.110.0140.00316.46
7.4.100.0150.00316.35
7.4.90.0060.01616.48
7.4.80.0080.00819.39
7.4.70.0040.01216.54
7.4.60.0090.00816.33
7.4.50.0070.00316.35
7.4.40.0080.00816.33
7.4.30.0070.01016.63
7.4.00.0000.01415.06
7.3.330.0050.00013.14
7.3.320.0050.00013.05
7.3.310.0040.00416.40
7.3.300.0030.00516.22
7.3.290.0090.00616.36
7.3.280.0090.00816.28
7.3.270.0130.00317.40
7.3.260.0090.00916.26
7.3.250.0110.00516.32
7.3.240.0100.01016.53
7.3.230.0090.01416.53
7.3.210.0110.00516.32
7.3.200.0140.00319.39
7.3.190.0120.00616.26
7.3.180.0070.01016.46
7.3.170.0120.00616.27
7.3.160.0040.01316.32
7.3.120.0100.00614.52
7.2.330.0130.00616.50
7.2.320.0090.00916.47
7.2.310.0090.01216.68
7.2.300.0130.00416.41
7.2.290.0170.00716.43
7.2.00.0190.01419.08
7.1.200.0030.00615.88
7.1.100.0090.00317.89
7.1.70.0080.00017.20
7.1.60.0060.00919.70
7.1.50.0090.01216.56
7.1.00.0000.08022.52
7.0.200.0220.00316.47
7.0.140.0070.06722.01
7.0.60.0100.07720.04
7.0.50.0130.07317.92
7.0.40.0130.07720.09
7.0.30.0200.04020.11
7.0.20.0300.04720.23
7.0.10.0030.04320.06
7.0.00.0100.08320.21
5.6.280.0000.07720.94
5.6.210.0130.08020.55
5.6.200.0100.05018.23
5.6.190.0130.08320.33
5.6.180.0430.05720.48
5.6.170.0400.07320.48
5.6.160.0100.04320.55
5.6.150.0000.04718.23
5.6.140.0030.04318.24
5.6.130.0130.07318.23
5.6.120.0130.07721.13
5.6.110.0030.08321.15
5.6.100.0100.06320.95
5.6.90.0130.04720.88
5.6.80.0030.03720.51
5.5.350.0070.05720.42
5.5.340.0030.08018.04
5.5.330.0100.06720.35
5.5.320.0030.04320.32
5.5.310.0330.07320.29
5.5.300.0100.07017.98
5.5.290.0100.06718.02
5.5.280.0030.08320.84
5.5.270.0030.06720.87
5.5.260.0070.08720.77
5.5.250.0170.05020.61
5.5.240.4200.04720.16
5.4.450.0270.04719.39
5.4.440.0170.03019.55
5.4.430.0200.03719.32
5.4.420.0170.03719.64
5.4.410.0230.03319.29
5.4.400.0130.03019.06
5.4.390.0100.04319.13
5.4.380.0230.05318.80
5.4.370.0100.06018.75
5.4.360.0330.05718.75
5.4.350.0300.06018.80
5.4.340.0200.05018.80
5.4.320.0090.03312.51
5.4.310.0030.05712.50
5.4.300.0040.04412.51
5.4.290.0030.04412.50
5.4.280.0080.03512.40
5.4.270.0080.03512.40
5.4.260.0030.04112.40
5.4.250.0050.04012.39
5.4.240.0100.03512.40
5.4.230.0060.04012.39
5.4.220.0080.04412.39
5.4.210.0050.04012.39
5.4.200.0030.04312.39
5.4.190.0040.04712.39
5.4.180.0080.04312.39
5.4.170.0040.04912.40
5.4.160.0090.04112.39
5.4.150.0050.04112.39
5.4.140.0110.04912.08
5.4.130.0100.04712.06
5.4.120.0050.05412.02
5.4.110.0110.03212.01
5.4.100.0080.03612.01
5.4.90.0100.03612.02
5.4.80.0090.03512.01
5.4.70.0070.03812.01
5.4.60.0090.03512.02
5.4.50.0090.03912.01
5.4.40.0060.03612.00
5.4.30.0130.04912.00
5.4.20.0110.04112.00
5.4.10.0060.04211.99
5.4.00.0020.04011.48
5.3.290.0050.03912.80
5.3.280.0080.03612.70
5.3.270.0080.03812.72
5.3.260.0070.04012.72
5.3.250.0080.04012.72
5.3.240.0090.04712.72
5.3.230.0100.05112.71
5.3.220.0080.05412.68
5.3.210.0070.05712.68
5.3.200.0090.05212.68
5.3.190.0110.04812.68
5.3.180.0110.04212.67
5.3.170.0090.04312.67
5.3.160.0110.04812.67
5.3.150.0150.04512.67
5.3.140.0100.05012.66
5.3.130.0070.05912.66
5.3.120.0080.05712.66
5.3.110.0100.04612.66
5.3.100.0060.04012.12
5.3.90.0090.04212.11
5.3.80.0090.03912.10
5.3.70.0070.03912.10
5.3.60.0060.03912.08
5.3.50.0100.03612.04
5.3.40.0060.04112.03
5.3.30.0050.05411.99
5.3.20.0080.05311.77
5.3.10.0100.04711.73
5.3.00.0050.04211.72
5.2.170.0080.0419.21
5.2.160.0080.0399.21
5.2.150.0120.0299.21
5.2.140.0120.0369.21
5.2.130.0060.0409.17
5.2.120.0090.0379.17
5.2.110.0070.0319.19
5.2.100.0080.0289.18
5.2.90.0080.0409.18
5.2.80.0090.0429.17
5.2.70.0180.0609.17
5.2.60.0060.0439.13
5.2.50.0060.0329.10
5.2.40.0090.0289.07
5.2.30.0100.0349.05
5.2.20.0100.0359.04
5.2.10.0050.0378.95
5.2.00.0130.0368.81
5.1.60.0080.0358.09
5.1.50.0100.0318.09
5.1.40.0070.0358.07
5.1.30.0050.0388.41
5.1.20.0040.0408.44
5.1.10.0090.0388.16
5.1.00.0100.0348.16
5.0.50.0090.0216.64
5.0.40.0040.0266.50
5.0.30.0060.0336.31
5.0.20.0030.0236.28
5.0.10.0040.0216.26
5.0.00.0020.0366.25
4.4.90.0060.0364.77
4.4.80.0040.0234.75
4.4.70.0050.0214.75
4.4.60.0050.0204.76
4.4.50.0050.0214.77
4.4.40.0030.0284.71
4.4.30.0030.0194.76
4.4.20.0020.0214.84
4.4.10.0050.0164.85
4.4.00.0040.0264.76
4.3.110.0030.0194.67
4.3.100.0040.0164.66
4.3.90.0030.0154.63
4.3.80.0020.0254.59
4.3.70.0020.0214.63
4.3.60.0030.0194.63
4.3.50.0060.0354.63
4.3.40.0030.0294.54
4.3.30.0020.0173.30
4.3.20.0040.0193.28
4.3.10.0000.0223.23
4.3.00.0000.01715.22

preferences:
42.18 ms | 401 KiB | 5 Q