<?php
$s = 'a:2:{i:0;O:13:"SplFixedArray":2:{i:0;a:1:{i:17;i:1711;}i:1;i:1337;}i:1;R:3;}';
$x=unserialize($s);
$z=[1];
$y=[3];
var_dump($x);
- Output for 5.6.0 - 5.6.24, 7.0.20, 7.1.5 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
- array(2) {
[0]=>
object(SplFixedArray)#1 (2) {
[0]=>
&array(1) {
[17]=>
int(1711)
}
[1]=>
int(1337)
}
[1]=>
&array(1) {
[17]=>
int(1711)
}
}
- Output for 7.0.0 - 7.0.9, 7.1.0
- array(2) {
[0]=>
object(SplFixedArray)#1 (2) {
[0]=>
array(1) {
[17]=>
int(1711)
}
[1]=>
int(1337)
}
[1]=>
&array(1) {
[17]=>
int(1711)
}
}
preferences:
181.13 ms | 402 KiB | 230 Q