Lines Matching refs:foo
7 $foo = "fo";
8 $foo .= "o";
24 $b ??= $foo;
27 $c = $foo;
31 $d ??= $foo;
36 $ary["foo"] ??= 123;
37 $ary[$foo] ??= $bar;
38 $ary[$bar] ??= $foo;
42 $ary[id($foo)] ??= 123;
43 $ary[id($foo)] ??= $bar;
44 $ary[id($bar)] ??= $foo;
49 $obj->foo ??= 123;
50 $obj->$foo ??= $bar;
51 $obj->$bar ??= $foo;
55 $obj->{id($foo)} ??= 123;
56 $obj->{id($foo)} ??= $bar;
57 $obj->{id($bar)} ??= $foo;
61 public static $foo;
66 Test::$foo ??= 123;
67 Test::$$foo ??= $bar;
68 Test::$$bar ??= $foo;
69 var_dump(Test::$foo, Test::$bar);
71 Test::$foo = null;
73 Test::${id($foo)} ??= 123;
74 Test::${id($foo)} ??= $bar;
75 Test::${id($bar)} ??= $foo;
76 var_dump(Test::$foo, Test::$bar);
82 string(3) "foo"
83 string(3) "foo"
84 string(3) "foo"
88 ["foo"]=>
91 string(3) "foo"
93 id(foo)
94 id(foo)
97 ["foo"]=>
100 string(3) "foo"
105 ["foo"]=>
108 string(3) "foo"
110 id(foo)
111 id(foo)
114 ["foo"]=>
117 string(3) "foo"
122 string(3) "foo"
123 id(foo)
124 id(foo)
127 string(3) "foo"