3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = ' a:13:{s:7:"agentId";i:386;s:13:"reservationId";i:316016;s:9:"timestamp";s:19:"2015-04-29 02:44:12";s:9:"longitude";d:1.3481166666667363518428146562655456364154815673828125;s:8:"latitude";d:43.62810000000012422560757840983569622039794921875;s:12:"positionTime";s:19:"2015-04-29 02:44:08";s:20:"totalDistanceVehicle";i:7287;s:20:"totalDistanceBooking";i:0;s:17:"totalDistanceType";i:1;s:16:"fuelLevelPercent";d:0;s:15:"distanceToEmpty";i:0;s:15:"refuelingStatus";i:0;s:9:"messageId";s:9:"254765359";} '; var_dump(unserialize($string));
Output for 4.3.2 - 7.2.0
Notice: unserialize(): Error at offset 0 of 500 bytes in /in/McLUk on line 7 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 500 bytes in /in/McLUk on line 7 bool(false)