3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f(&$obst) { $obst['birne'] = 'gelb'; return $obst; } $obst['apfel'] = 'gruen'; $obst = f($obst); var_dump($obst);
Output for 4.3.0 - 5.4.36, 5.4.38 - 5.5.20, 5.5.22 - 7.1.0
array(2) { ["apfel"]=> string(5) "gruen" ["birne"]=> string(4) "gelb" }
Output for 5.4.37, 5.5.21

Process exited with code 137.