3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class hi { function __destruct() { echo 'hi'; } } $foo = 'O:2:"hi":0:{}'; $data = unserialize($foo, false); var_dump($data);
Output for 7.3.0alpha1 - 7.3.0rc6
Warning: unserialize() expects parameter 2 to be array, bool given in /in/CMphr on line 9 bool(false)
Output for 7.0.0 - 7.2.6
Warning: unserialize() expects parameter 2 to be array, boolean given in /in/CMphr on line 9 bool(false)
Output for 5.2.0 - 5.6.28
Warning: unserialize() expects exactly 1 parameter, 2 given in /in/CMphr on line 9 bool(false)
Output for 4.3.0 - 5.1.6
Warning: Wrong parameter count for unserialize() in /in/CMphr on line 9 NULL