3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data='O:8:"stdClass":4:{'; $data.='s:3:"123";a:10:{i:1;i:1;i:2;i:2;i:3;i:3;i:4;i:4;i:5;i:5;i:6;i:6;i:7;i:7;i:8;i:8;i:9;i:9;};'; $data.='s:3:"123";i:0;'; $data.='i:0;S:17:"\00\01\00\00AAAA\00\01\01\00\01\00\0B\BC\CC";'; $data.='i:1;r:12;}'; var_dump(serialize(unserialize($data))); ?>
Output for 8.3.0 - 8.3.4
Warning: unserialize(): Unexpected end of serialized data in /in/X1m6g on line 9 Warning: unserialize(): Error at offset 106 of 187 bytes in /in/X1m6g on line 9 string(4) "b:0;"
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
Notice: unserialize(): Unexpected end of serialized data in /in/X1m6g on line 9 Notice: unserialize(): Error at offset 106 of 187 bytes in /in/X1m6g on line 9 string(4) "b:0;"
Output for 7.3.32 - 7.3.33
string(4) "b:0;"
Output for 4.3.2 - 4.3.9
Notice: Unexpected end of serialized data in /in/X1m6g on line 9 Notice: unserialize(): Error at offset 106 of 187 bytes in /in/X1m6g on line 9 string(4) "b:0;"
Output for 4.3.0 - 4.3.1
Notice: Unexpected end of serialized data in /in/X1m6g on line 9 Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 106 of 187 bytes in /in/X1m6g on line 9 string(4) "b:0;"

preferences:
334.98 ms | 401 KiB | 455 Q