Lines Matching refs:new

7     var_dump(new class {
9 function __destruct() { throw new Exception; }
14 var_dump([0] + [new class {
15 function __destruct() { throw new Exception; }
21 var_dump($foo += [new class {
22 function __destruct() { throw new Exception; }
28 var_dump($foo->foo += [new class {
29 function __destruct() { throw new Exception; }
34 $foo = new class {
38 var_dump($foo->foo += [new class {
39 function __destruct() { throw new Exception; }
44 $foo = new class {
48 var_dump($foo->foo += [new class {
49 function __destruct() { throw new Exception; }
54 $foo = new class implements ArrayAccess {
60 var_dump($foo[0] += [new class {
61 function __destruct() { throw new Exception; }
66 $foo = new class implements ArrayAccess {
73 var_dump($foo[0] += [new class {
74 function __destruct() { throw new Exception; }
79 var_dump((function() { return new class {
80 function __construct() { $this->foo = new stdClass; }
81 function __destruct() { throw new Exception; }
86 var_dump((function() { return new class {
87 function __get($x) { return new stdClass; }
89 function __destruct() { throw new Exception; }
94 var_dump((function() { return new class {
95 function __construct() { $this->bar = new stdClass; }
97 function __destruct() { throw new Exception; }
102 var_dump(++(function() { return new class {
103 function __construct() { $this->foo = new stdClass; }
104 function __destruct() { throw new Exception; }
109 var_dump(++(function() { return new class {
110 function __get($x) { return new stdClass; }
112 function __destruct() { throw new Exception; }
117 var_dump(++(function() { return new class {
118 function __construct() { $this->bar = new stdClass; }
120 function __destruct() { throw new Exception; }
125 var_dump((function() { return new class implements ArrayAccess {
126 function offsetGet($x) { return [new stdClass]; }
130 function __destruct() { throw new Exception; }
135 var_dump(++(function() { return new class implements ArrayAccess {
136 function offsetGet($x) { return [new stdClass]; }
140 function __destruct() { throw new Exception; }
145 var_dump((new class {
146 function __construct() { $this->foo = new stdClass; }
147 function __destruct() { throw new Exception; }
152 var_dump((new class {
153 function __get($x) { return new stdClass; }
155 function __destruct() { throw new Exception; }
160 var_dump((new class implements ArrayAccess {
161 function offsetGet($x) { return [new stdClass]; }
165 function __destruct() { throw new Exception; }
170 var_dump(isset((new class {
171 function __construct() { $this->foo = new stdClass; }
172 function __destruct() { throw new Exception; }
177 var_dump(isset((new class {
178 function __get($x) { return new stdClass; }
180 function __destruct() { throw new Exception; }
185 var_dump(isset((new class implements ArrayAccess {
186 function offsetGet($x) { return [new stdClass]; }
190 function __destruct() { throw new Exception; }
195 $foo = new class {
196 function __destruct() { throw new Exception; }
198 var_dump($foo = new stdClass);
202 $foo = [new class {
203 function __destruct() { throw new Exception; }
205 var_dump($foo[0] = new stdClass);
209 $foo = (object) ["foo" => new class {
210 function __destruct() { throw new Exception; }
212 var_dump($foo->foo = new stdClass);
216 $foo = new class {
218 function __set($x, $y) { throw new Exception; }
220 var_dump($foo->foo = new stdClass);
224 $foo = new class implements ArrayAccess {
226 function offsetSet($x, $y) { throw new Exception; }
230 var_dump($foo[0] = new stdClass);
234 $foo = new class {
235 function __destruct() { throw new Exception; }
237 $bar = new stdClass;
243 return new class {
245 function __destruct() { throw new Exception; }
253 return new class {
255 function __destruct() { throw new Exception; }
262 var_dump((string) new class {
264 function __destruct() { throw new Exception; }
269 var_dump(clone (new class {
270 function __clone() { throw new Exception; }