3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['asdf', 'agdr']; $b = serialize($a); $c = unserialize($b, [false]); var_dump($c);
Output for 7.0.28 - 7.3.0rc3
array(2) { [0]=> string(4) "asdf" [1]=> string(4) "agdr" }
Output for 5.6.38
Warning: unserialize() expects exactly 1 parameter, 2 given in /in/TGuue on line 5 bool(false)