--TEST-- Refs on ASSIGN_OBJ fast-path --FILE-- prop = $array; } public function bar() { $str = "123"; $this->prop2 = ref($str); } } $test = new Test; $test->foo(); $test->foo(); $test->bar(); $test->bar(); var_dump($test); ?> --EXPECT-- object(Test)#1 (2) { ["prop"]=> array(0) { } ["prop2"]=> int(123) }