3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class hi { function __wakeup() { echo 'haha'; } function __destruct() { echo 'hi'; } } $foo = 'O:2:"hi":+aa}'; $data = unserialize($foo); var_dump($data);
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
hahaobject(hi)#1 (0) { } hi
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [O:2:"hi":+aa}]. Expected ':' but got '+'. in /in/qVN1Y on line 12 bool(false)
Output for 4.3.0 - 4.4.9
hahaobject(hi)(0) { }