3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( unserialize('C:11:"ArrayObject":21:{x:i:0;a:0:{};m:a:0:{}}') ); var_dump( 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;}') );
based on Zk8r3
Output for 5.3.0 - 7.2.0
object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> array(0) { } } 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.1.0 - 5.2.17
Warning: Class ArrayObject has no unserializer in /in/hX2YZ on line 4 Notice: unserialize(): Error at offset 17 of 45 bytes in /in/hX2YZ on line 4 bool(false) 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 4.3.2 - 5.0.5
Notice: unserialize(): Error at offset 0 of 45 bytes in /in/hX2YZ on line 4 bool(false) 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 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 45 bytes in /in/hX2YZ on line 4 bool(false) 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 }