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) }
Output for 7.0.0 - 7.0.14
array(1) refcount(2){ [0]=> int(1) }
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28
array(1) refcount(2){ [0]=> long(1) refcount(1) }
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/2bgFU on line 6
Process exited with code 255.