xref: /PHP-7.4/Zend/tests/list_001.phpt (revision 4f077aee)
1--TEST--
2"Nested" list()
3--FILE--
4<?php
5
6list($a, list($b)) = array(new stdclass, array(new stdclass));
7var_dump($a, $b);
8[$a, [$b]] = array(new stdclass, array(new stdclass));
9var_dump($a, $b);
10
11?>
12--EXPECT--
13object(stdClass)#1 (0) {
14}
15object(stdClass)#2 (0) {
16}
17object(stdClass)#3 (0) {
18}
19object(stdClass)#4 (0) {
20}
21