3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = 1; a($b); function a($a){ debug_zval_dump($a);//refcount=4 why not 3?? xdebug_debug_zval('a');//refcount=3 why not 2?? }
Output for 7.0.0 - 7.1.0
int(1)
Output for 4.3.0 - 5.6.28
long(1) refcount(4)