3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a { } class b { } $as = serialize(new a); $as = serialize(new b); var_dump(unserialize($as, array('allowed_asss' => 'a') )); var_dump(unserialize($bs, array('allowed_asss' => 'a') ));
based on AV3Qi
Output for 7.0.0 - 7.2.0
object(b)#1 (0) { } Notice: Undefined variable: bs in /in/AR4sr on line 16 bool(false)
Output for 5.3.21 - 5.6.28
Warning: unserialize() expects exactly 1 parameter, 2 given in /in/AR4sr on line 15 bool(false) Notice: Undefined variable: bs in /in/AR4sr on line 16 Warning: unserialize() expects exactly 1 parameter, 2 given in /in/AR4sr on line 16 bool(false)