3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class hi { function __destruct() { echo 'hi'; } } $foo = 'O:2:"hi":0:'; $data = unserialize($foo); var_dump($data);
Output for 7.1.0
Notice: unserialize(): Error at offset 13 of 11 bytes in /in/amB0d on line 9 hibool(false)
Output for 5.0.0 - 7.0.14
hi Notice: unserialize(): Error at offset 13 of 11 bytes in /in/amB0d on line 9 bool(false)
Output for 4.3.2 - 4.4.9
Notice: unserialize(): Error at offset 13 of 11 bytes in /in/amB0d on line 9 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 13 of 11 bytes in /in/amB0d on line 9 bool(false)