- Output for 8.1.30, 8.2.3 - 8.2.26, 8.3.5 - 8.3.14
- In function scope: object(WeakMap)#2 (2) { [0]=> array(2) { ["key"]=> object(Name)#1 (1) { ["name"]=> string(6) "global" } ["value"]=> string(10) "global-val" } [1]=> array(2) { ["key"]=> object(Name)#3 (1) { ["name"]=> string(4) "func" } ["value"]=> string(8) "func-val" } } In global scope: object(WeakMap)#2 (1) { [0]=> array(2) { ["key"]=> object(Name)#1 (1) { ["name"]=> string(6) "global" } ["value"]=> string(10) "global-val" } }