3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var1 = 'Hello World'; $var2 = ''; $var2 =& $var1; debug_zval_dump($var1);
based on e31sB
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.1.1, 7.1.7 - 7.3.0rc4
string(11) "Hello World" refcount(1)
Output for 7.1.2 - 7.1.6
string(11) "Hello World" refcount(3)