3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array("A","B","C","D"); debug_zval_dump($list);
Output for 7.1.0
array(4) refcount(3){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) }
Output for 7.0.0 - 7.0.14
array(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) }
Output for hhvm-3.12.0
array(4) refcount(1){ [0]=> string(1) "A" refcount(-127) [1]=> string(1) "B" refcount(-127) [2]=> string(1) "C" refcount(-127) [3]=> string(1) "D" refcount(-127) }
Output for hhvm-3.10.0
array(4) refcount(-127){ [0]=> string(1) "A" refcount(-127) [1]=> string(1) "B" refcount(-127) [2]=> string(1) "C" refcount(-127) [3]=> string(1) "D" refcount(-127) }
Output for 4.3.0 - 5.6.28
array(4) refcount(2){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) }