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 hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.5
Fatal error: Call-time pass-by-reference has been removed in /in/B9bN1 on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/B9bN1 on line 8 array(2) { ["apfel"]=> string(5) "gruen" ["birne"]=> string(4) "gelb" }