3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_STRICT | E_ALL); class y { public function __get($k) { } } class x extends y { protected $_x = array(); public function &__get($k) { return $this->_x; } } $x =new x; $x->a['b'] = 4; print_r($x);

preferences:
34.09 ms | 402 KiB | 5 Q