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 YYetl
Output for 4.3.0 - 7.2.0
string(5) "hello" string(5) "hello"