3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function &ref(&$rhs){ return $rhs; } $b = 1; $a = ref($b); $a = "hello"; var_dump($a,$b);
based on F2FGj
Output for 4.3.0 - 7.2.0
string(5) "hello" int(1)