3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class obj { var $prop; function __wakeup() { $this->prop = 'prop'; } } $x = 'a:3:{i:0;O:8:"stdClass":1:{i:0;a:1:{i:0;i:1;}}i:1;O:3:"obj":1:{s:4:"prop";R:2;}i:2;R:4;}'; $y = unserialize($x); var_dump($y);
based on Md78k
Output for 5.4.39 - 7.2.0
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> int(1) }
Output for 5.4.38
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140093978022416) }
Output for 5.4.37
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140558723498512) }
Output for 5.4.36
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140106036634128) }
Output for 5.4.35
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139744083427856) }
Output for 5.4.34
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140608924516880) }
Output for 5.4.32
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140699205038608) }
Output for 5.4.31
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140403036541456) }
Output for 5.4.30
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139713462747664) }
Output for 5.4.29
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140151562932752) }
Output for 5.4.28
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140333229068816) }
Output for 5.4.27
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140248192807440) }
Output for 5.4.26
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140674941661712) }
Output for 5.4.25
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140309014503952) }
Output for 5.4.24
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139856818602512) }
Output for 5.4.23
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140337562075664) }
Output for 5.4.22
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140437411791376) }
Output for 5.4.21
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140128007549456) }
Output for 5.4.20
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140616753086992) }
Output for 5.4.19
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140305267634704) }
Output for 5.4.18
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139788127212048) }
Output for 5.4.17
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140448285450768) }
Output for 5.4.16
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140450346054160) }
Output for 5.4.15
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139974968713744) }
Output for 5.4.14
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140483430179344) }
Output for 5.4.13
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140341424783888) }
Output for 5.4.12
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139969446957584) }
Output for 5.4.11
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140476917654032) }
Output for 5.4.10
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139763295130128) }
Output for 5.4.9
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139733119275008) }
Output for 5.4.8
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139698859266048) }
Output for 5.4.7
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140202746617856) }
Output for 5.4.6
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139980205236224) }
Output for 5.4.5
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140692973502464) }
Output for 5.4.4
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(139677087629312) }
Output for 5.4.3
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140594638581760) }
Output for 5.4.2
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140536592580608) }
Output for 5.4.1
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(140538016415744) }
Output for 5.3.29
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(27352120) }
Output for 5.3.28
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(40885304) }
Output for 5.3.27
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(50064440) }
Output for 5.3.26
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(45267352) }
Output for 5.3.25
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(21711256) }
Output for 5.3.24
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(51747224) }
Output for 5.3.23
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(26773912) }
Output for 5.3.22
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(44419480) }
Output for 5.3.21
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(30509464) }
Output for 5.3.20
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(44038552) }
Output for 5.3.19
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(45214104) }
Output for 5.3.18
array(3) { [0]=> &string(4) "prop" [1]=> object(obj)#2 (1) { ["prop"]=> &string(4) "prop" } [2]=> &int(43104664) }