3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class E { protected $a = array('franz' => 'de leon', 'cheryl' => 'chua'); public function a() { return &$this->a; } } $ar = new E; $arr = $ar->a(); $arr['john'] = 'doe'; var_dump($ar->a());
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '&' in /in/DdYLs on line 11
Process exited with code 255.