3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /// Example 4 $str = "Simple text"; $temp = ""; $a = function() { global $str, $temp; $temp = &$str; }; $a(); echo "[".$str."] [".$temp."]\n"; /// [Simple text] []
based on emave
Output for 5.6.0 - 7.3.0rc4
[Simple text] []