1--TEST-- 2Indirect modification of isref by-value return value not possible 3--FILE-- 4<?php 5 6class A { 7 public $b; 8} 9 10$arr = []; 11 12$a = new A; 13$a->b =& $arr; 14 15(new ReflectionProperty('A', 'b'))->getValue($a)[] = 42; 16 17var_dump($a); 18 19?> 20--EXPECT-- 21object(A)#1 (1) { 22 ["b"]=> 23 &array(0) { 24 } 25} 26