1--TEST--
2Invalid operation in new arg in const expr
3--FILE--
4<?php
5
6$foo = [1, 2, 3];
7static $x = new stdClass($foo);
8var_dump($foo);
9
10?>
11--EXPECT--
12array(3) {
13  [0]=>
14  int(1)
15  [1]=>
16  int(2)
17  [2]=>
18  int(3)
19}
20