3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1); debug_zval_dump($a); end((((((((((((((((((array_keys($a))))))))))))))))))); debug_zval_dump($a);
Output for 7.1.0
array(1) refcount(3){ [0]=> int(1) } Notice: Only variables should be passed by reference in /in/MDFi3 on line 5 array(1) refcount(3){ [0]=> int(1) }
Output for 7.0.0 - 7.0.14
array(1) refcount(2){ [0]=> int(1) } Notice: Only variables should be passed by reference in /in/MDFi3 on line 5 array(1) refcount(2){ [0]=> int(1) }
Output for 4.3.0 - 5.6.28
array(1) refcount(2){ [0]=> long(1) refcount(1) } array(1) refcount(2){ [0]=> long(1) refcount(1) }