3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php Class Foo { } $unserialize = unserialize( serialize(new Foo), ['allowed_classes' => []] ); var_dump($unserialize);
based on dOoiP
Output for 7.0.0 - 7.2.0
object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(3) "Foo" }
Output for 5.4.0 - 5.6.28
Warning: unserialize() expects exactly 1 parameter, 2 given in /in/2pjom on line 8 bool(false)