3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('foo','bar','baz',1,2,3); var_dump(unserialize(serialize($arr)));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(6) { [0]=> string(3) "foo" [1]=> string(3) "bar" [2]=> string(3) "baz" [3]=> int(1) [4]=> int(2) [5]=> int(3) }