3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function& test($arr = array()) { global $g_arr; $g_arr =& $arr; var_dump($arr); return $arr; } test(); var_dump($g_arr);
Output for 4.3.0 - 7.1.0
array(0) { } NULL