3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a { } $d = 'O:1:"a":0:{}'; var_dump(unserialize($d, array('allowed_asss' => 'a') ));
based on DnLKp
Output for 7.0.0 - 7.2.0
object(a)#1 (0) { }
Output for 5.3.21 - 5.6.28
Warning: unserialize() expects exactly 1 parameter, 2 given in /in/Rhsbe on line 10 bool(false)