3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array("A","B","C","D"); echo "\n"; debug_zval_dump($list); foreach ( $list as $var ) { debug_zval_dump($list); print(current($list)); } echo "\n"; debug_zval_dump($list); foreach ( $list as $var ) { print(item($list)); } function item($list) { debug_zval_dump($list); return current($list); } echo "\n"; item2($list); function item2($list) { debug_zval_dump($list); foreach ( $list as $var ) { debug_zval_dump($list); print(current($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) } array(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } A 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(2) } array(4) refcount(5){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } A array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } array(4) refcount(5){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(3) } A
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) } array(4) refcount(3){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(3){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(3){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(3){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } A 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(3) } array(4) refcount(4){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } A array(4) refcount(3){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } array(4) refcount(4){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(4) } A
Output for 5.4.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) } array(4) refcount(3){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Barray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Barray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(2) } Barray(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(3) } B 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(2) } array(4) refcount(5){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Barray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Carray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(1) } Darray(4) refcount(5){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } A array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } array(4) refcount(4){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(4) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(4) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(4) [3]=> string(1) "D" refcount(4) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(5) } A
Output for 5.2.4 - 5.3.29
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) } array(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Barray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Barray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(2) } Barray(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(3) } B 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(2) } array(4) refcount(6){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Barray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Carray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(1) } Darray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } A array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } array(4) refcount(4){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(4) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(4) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(4) [3]=> string(1) "D" refcount(4) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(5) } A
Output for 5.2.1 - 5.2.3
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) } array(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(2) } Aarray(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(3) } A 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(2) } array(4) refcount(6){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } A array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } array(4) refcount(6){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(3) } Aarray(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(4) } A
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.2.0
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) } array(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(2) } Aarray(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(3) } A 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(2) } array(4) refcount(6){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } A array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(2) } array(4) refcount(4){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(4) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(4) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(4) [3]=> string(1) "D" refcount(4) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(5) } A
Output for 4.3.10 - 4.4.0, 4.4.2 - 4.4.9
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) } array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(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) } Aarray(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) } Aarray(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) } A 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) } array(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Aarray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } A array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } array(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(3) } Aarray(4) refcount(2){ [0]=> string(1) "A" refcount(3) [1]=> string(1) "B" refcount(3) [2]=> string(1) "C" refcount(3) [3]=> string(1) "D" refcount(3) } A
Output for 4.4.1
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) } array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Barray(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Carray(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Darray(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } 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) } array(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Barray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Carray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } Darray(4) refcount(6){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } array(4) refcount(4){ [0]=> string(1) "A" refcount(1) [1]=> string(1) "B" refcount(1) [2]=> string(1) "C" refcount(1) [3]=> string(1) "D" refcount(1) } array(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Barray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Carray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) } Darray(4) refcount(4){ [0]=> string(1) "A" refcount(2) [1]=> string(1) "B" refcount(2) [2]=> string(1) "C" refcount(2) [3]=> string(1) "D" refcount(2) }