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 {
81 function __construct() { $this->foo = new stdClass; }
82 function __destruct() { throw new Exception; }
87 var_dump((function() { return new class {
88 function __get($x) { return new stdClass; }
90 function __destruct() { throw new Exception; }
95 var_dump((function() { return new class {
97 function __construct() { $this->bar = new stdClass; }
99 function __destruct() { throw new Exception; }
104 var_dump(++(function() { return new class {
105 function __construct() { $this->foo = new stdClass; }
106 function __destruct() { throw new Exception; }
111 var_dump(++(function() { return new class {
112 function __get($x) { return new stdClass; }
114 function __destruct() { throw new Exception; }
119 var_dump(++(function() { return new class {
121 function __construct() { $this->bar = new stdClass; }
123 function __destruct() { throw new Exception; }
128 var_dump((function() { return new class implements ArrayAccess {
129 function offsetGet($x): mixed { return [new stdClass]; }
133 function __destruct() { throw new Exception; }
138 var_dump(++(function() { return new class implements ArrayAccess {
139 function offsetGet($x): mixed { return [new stdClass]; }
143 function __destruct() { throw new Exception; }
148 var_dump((new class {
150 function __construct() { $this->foo = new stdClass; }
151 function __destruct() { throw new Exception; }
156 var_dump((new class {
157 function __get($x) { return new stdClass; }
159 function __destruct() { throw new Exception; }
164 var_dump((new class implements ArrayAccess {
165 function offsetGet($x): mixed { return [new stdClass]; }
169 function __destruct() { throw new Exception; }
174 var_dump(isset((new class {
176 function __construct() { $this->foo = new stdClass; }
177 function __destruct() { throw new Exception; }
182 var_dump(isset((new class {
183 function __get($x) { return new stdClass; }
185 function __destruct() { throw new Exception; }
190 var_dump(isset((new class implements ArrayAccess {
191 function offsetGet($x): mixed { return [new stdClass]; }
195 function __destruct() { throw new Exception; }
200 $foo = new class {
201 function __destruct() { throw new Exception; }
203 var_dump($foo = new stdClass);
207 $foo = [new class {
208 function __destruct() { throw new Exception; }
210 var_dump($foo[0] = new stdClass);
214 $foo = (object) ["foo" => new class {
215 function __destruct() { throw new Exception; }
217 var_dump($foo->foo = new stdClass);
221 $foo = new class {
223 function __set($x, $y) { throw new Exception; }
225 var_dump($foo->foo = new stdClass);
229 $foo = new class implements ArrayAccess {
231 function offsetSet($x, $y): void { throw new Exception; }
235 var_dump($foo[0] = new stdClass);
239 $foo = new class {
240 function __destruct() { throw new Exception; }
242 $bar = new stdClass;
248 return new class {
250 function __destruct() { throw new Exception; }
258 return new class {
260 function __destruct() { throw new Exception; }
267 var_dump((string) new class {
269 function __destruct() { throw new Exception; }
274 var_dump(clone (new class {
275 function __clone() { throw new Exception; }