3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('O:8:"stdClass":aa}')); var_dump(unserialize('a:+0:{}'));
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
object(stdClass)#1 (0) { } array(0) { }
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [O:8:"stdClass":aa}]. Expected ':' but got 'a'. in /in/fSGpC on line 3 bool(false) Notice: Unable to unserialize: [a:+0:{}]. Expected ':' but got '+'. in /in/fSGpC on line 4 bool(false)
Output for 4.3.0 - 4.4.9
object(stdClass)(0) { } array(0) { }