3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1; $array = array($a, &$a); var_dump(serialize($array)); var_dump(unserialize(serialize($array)));
Output for 4.3.0 - 7.1.0
string(22) "a:2:{i:0;i:1;i:1;i:1;}" array(2) { [0]=> int(1) [1]=> int(1) }