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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(22) "a:2:{i:0;i:1;i:1;R:2;}" array(2) { [0]=> &int(1) [1]=> &int(1) }