xref: /PHP-8.0/Zend/tests/assign_to_var_001.phpt (revision 782352c5)
1--TEST--
2complex cases of variable assignment - 001
3--FILE--
4<?php
5
6$var = array(1,2,3);
7$var1 = &$var;
8$var = $var[1];
9
10var_dump($var);
11var_dump($var1);
12
13echo "Done\n";
14?>
15--EXPECT--
16int(2)
17int(2)
18Done
19