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.0 - 7.2.0
array(13) { ["agentId"]=> int(386) ["reservationId"]=> int(316016) ["timestamp"]=> string(19) "2015-04-29 02:44:12" ["longitude"]=> float(1.3481166666667) ["latitude"]=> float(43.6281) ["positionTime"]=> string(19) "2015-04-29 02:44:08" ["totalDistanceVehicle"]=> int(7287) ["totalDistanceBooking"]=> int(0) ["totalDistanceType"]=> int(1) ["fuelLevelPercent"]=> float(0) ["distanceToEmpty"]=> int(0) ["refuelingStatus"]=> int(0) ["messageId"]=> string(9) "254765359" }