3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f(&$obst) { $obst['birne'] = 'gelb'; return &$obst; } $obst['apfel'] = 'gruen'; $obst2 = f($obst); $obst2['foo'] = 'bar'; var_dump($obst, $obst2);
Output for 5.3.0 - 5.4.5
Parse error: syntax error, unexpected '&' in /in/fY2cp on line 4
Process exited with code 255.