3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('O:8:"stdClass"::{}')); var_dump(unserialize('a:+0:{}'));
Output for 7.2.0 - 7.3.0rc4
object(stdClass)#1 (0) { } Notice: unserialize(): Error at offset 0 of 7 bytes in /in/mlDPn on line 4 bool(false)
Output for 5.0.0 - 7.1.20
object(stdClass)#1 (0) { } array(0) { }
Output for 4.3.0 - 4.4.9
object(stdClass)(0) { } array(0) { }