1--TEST--
2isset() can be used on dereferences of temporary expressions
3--FILE--
4<?php
5
6var_dump(isset([0, 1][0]));
7var_dump(isset(([0, 1] + [])[0]));
8var_dump(isset([[0, 1]][0][0]));
9var_dump(isset(([[0, 1]] + [])[0][0]));
10var_dump(isset(((object) ['a' => 'b'])->a));
11var_dump(isset(['a' => 'b']->a));
12var_dump(isset("str"->a));
13var_dump(isset((['a' => 'b'] + [])->a));
14var_dump(isset((['a' => 'b'] + [])->a->b));
15
16?>
17--EXPECT--
18bool(true)
19bool(true)
20bool(true)
21bool(true)
22bool(true)
23bool(false)
24bool(false)
25bool(false)
26bool(false)
27