3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = 'a:3:{i:0;O:13:"SplFixedArray":2:{i:0;a:1:{i:17;i:1711;}i:1;i:1337;}i:1;R:3;i:0;i:0;}'; $x=unserialize($s); $z=[1]; $y=[3]; var_dump($x);
based on XinVp
Output for 5.6.0 - 5.6.24, 7.0.20, 7.1.5 - 7.3.0beta1
array(2) { [0]=> int(0) [1]=> array(1) { [17]=> int(1711) } }
Output for 7.1.0
array(2) { [0]=> int(0) [1]=> &array(1) { [17]=> int(1711) } }
Output for 7.0.0 - 7.0.9
array(2) { [0]=> int(0) [1]=> &array(1) { [0]=> int(3) } }