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":-:{}'; $data = unserialize($foo); var_dump($data);
Output for 5.0.0 - 7.1.0
hahaobject(hi)#1 (0) { } hi
Output for 4.3.0 - 4.4.9
hahaobject(hi)(0) { }