3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class obj { var $prop; function __wakeup() { unset($this->prop); } } var_dump(unserialize('a:2:{i:0;O:3:"obj":1:{s:4:"prop";r:1;}i:1;r:3;}'));
based on Vv1He
Output for 7.0.20, 7.1.5 - 7.2.0
array(2) { [0]=> object(obj)#1 (0) { } [1]=> array(2) { [0]=> object(obj)#1 (0) { } [1]=> *RECURSION* } }
Output for 7.0.0 - 7.0.6, 7.1.0
array(1) { [0]=> object(obj)#1 (0) { } }
Output for 5.3.18 - 5.6.28
array(2) { [0]=> object(obj)#1 (0) { } [1]=> NULL }