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;}'));
based on EClYb
Output for 5.4.39 - 5.4.45, 5.5.23 - 5.5.38, 5.6.7 - 5.6.38, hhvm-3.12.14 - 3.22.0, 7.0.15 - 7.0.32, 7.1.1 - 7.2.12
array(2) { [0]=> object(obj)#1 (0) { } [1]=> int(1) }
Output for 7.0.0 - 7.0.14, 7.1.0
array(1) { [0]=> object(obj)#1 (0) { } }
Output for hhvm-3.10.1 - 3.11.1
array(2) { [0]=> object(obj)#1 (0) { } [1]=> NULL }
Output for 5.3.18 - 5.4.38, 5.5.0 - 5.5.22, 5.6.0 - 5.6.6
Notice: unserialize(): Error at offset 46 of 47 bytes in /in/L56O7 on line 10 bool(false)