3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 5; $bar = 10; $bar = &$foo; var_dump($bar); $foo = 100; var_dump($bar);
based on bECaV
Output for 4.3.0 - 7.1.0
int(5) int(100)