3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class hi { function __destruct() { echo 'hi'; } } $foo = 'C:2:"hi"'; $data = unserialize($foo); var_dump($data);
Output for 5.1.0 - 7.2.0
Notice: unserialize(): Error at offset 8 of 8 bytes in /in/jYeP1 on line 9 bool(false)
Output for 4.3.2 - 5.0.5
Notice: unserialize(): Error at offset 0 of 8 bytes in /in/jYeP1 on line 9 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 8 bytes in /in/jYeP1 on line 9 bool(false)