3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'x'; a($a); function a($a){ debug_zval_dump($a);//refcount=4 why not 3? }
Output for 7.0.0 - 7.3.0
string(1) "x" refcount(1)
Output for 4.3.0 - 5.6.38
string(1) "x" refcount(4)