3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $global_var="lorem"; $global_p=&$global_var; function myfunc () { global $global_p, $global_var; var_dump($global_p); var_dump($global_var); } myfunc();
Output for 4.3.0 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
string(5) "lorem" string(5) "lorem"
Output for hhvm-3.10.0

Process exited with code 153.