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";i:1;}i:1;R:3;}'));
Output for 5.4.39 - 5.6.28, 7.0.20, 7.1.5 - 7.2.0
array(2) { [0]=> object(obj)#1 (0) { } [1]=> int(1) }
Output for 7.0.0 - 7.0.6, 7.1.0
array(1) { [0]=> object(obj)#1 (0) { } }
Output for 5.3.18 - 5.4.38
array(2) { [0]=> object(obj)#1 (0) { } [1]=> &NULL }