3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = unserialize('a:19:{s:4:"mode";s:9:"connected";s:9:"binAttach";N;s:10:"fileAttach";N;s:5:"login";N;s:8:"password";N;s:4:"date";s:19:"2015-03-26 01:50:07";s:4:"from";N;s:6:"knetid";s:8:"50333754";s:7:"fleetId";N;s:2:"to";i:255;s:6:"custId";N;s:4:"flow";i:6;s:5:"tname";s:9:"245545475";s:6:"status";N;s:5:"value";s:8:"position";s:4:"info";N;s:2:"id";N;s:4:"body";s:11:"<position/>";s:6:"delaym";N;}'); $myObject = new ArrayObject($test); $test2 = serialize($myObject); var_dump(unserialize($test2));
based on hX2YZ
Output for 5.3.0 - 7.2.0
object(ArrayObject)#2 (1) { ["storage":"ArrayObject":private]=> array(19) { ["mode"]=> string(9) "connected" ["binAttach"]=> NULL ["fileAttach"]=> NULL ["login"]=> NULL ["password"]=> NULL ["date"]=> string(19) "2015-03-26 01:50:07" ["from"]=> NULL ["knetid"]=> string(8) "50333754" ["fleetId"]=> NULL ["to"]=> int(255) ["custId"]=> NULL ["flow"]=> int(6) ["tname"]=> string(9) "245545475" ["status"]=> NULL ["value"]=> string(8) "position" ["info"]=> NULL ["id"]=> NULL ["body"]=> string(11) "<position/>" ["delaym"]=> NULL } }
Output for 5.0.0 - 5.2.17
object(ArrayObject)#2 (19) { ["mode"]=> string(9) "connected" ["binAttach"]=> NULL ["fileAttach"]=> NULL ["login"]=> NULL ["password"]=> NULL ["date"]=> string(19) "2015-03-26 01:50:07" ["from"]=> NULL ["knetid"]=> string(8) "50333754" ["fleetId"]=> NULL ["to"]=> int(255) ["custId"]=> NULL ["flow"]=> int(6) ["tname"]=> string(9) "245545475" ["status"]=> NULL ["value"]=> string(8) "position" ["info"]=> NULL ["id"]=> NULL ["body"]=> string(11) "<position/>" ["delaym"]=> NULL }
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/6IDGB on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/6IDGB on line 8