3v4l.org

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