3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('O:8:"stdClass":2:{s:1:"a"Xs:1:"b";s:1:"c"Xs:1:"d"X}'));
Output for 5.6.21 - 5.6.28, 7.0.6 - 7.1.0
Notice: unserialize(): Error at offset 25 of 51 bytes in /in/8vu5o on line 2 bool(false)
Output for 5.0.0 - 5.6.20, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.5
object(stdClass)#1 (2) { ["a"]=> string(1) "b" ["c"]=> string(1) "d" }
Output for 4.3.0 - 4.4.9
object(stdClass)(2) { ["a"]=> string(1) "b" ["c"]=> string(1) "d" }