--TEST-- Virtual prop satisfies interface get hook by-reference --FILE-- $this->_prop; } } function test(I $i) { $ref = &$i->prop; $ref = 42; } $a = new A(); test($a); var_dump($a); ?> --EXPECT-- object(A)#1 (1) { ["_prop":"A":private]=> int(42) }