3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? function &myfoo(){ return $arr="qwe"; } $a=myfoo(); var_dump($a);
based on OkSmi
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0alpha1
Notice: Only variable references should be returned by reference in /in/HACjo on line 3 string(3) "qwe"
Output for hhvm-3.15.4
string(3) "qwe"