3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'a:13:{s:7:"agentId";i:351;s:13:"reservationId";i:316015;s:9:"timestamp";s:19:"2015-04-29 02:39:03";s:9:"longitude";d:3.0908166666666847532951578614301979541778564453125;s:8:"latitude";d:45.784600000000153841028804890811443328857421875;s:12:"positionTime";s:19:"2015-04-29 02:38:56";s:20:"totalDistanceVehicle";i:14509;s:20:"totalDistanceBooking";i:4;s:17:"totalDistanceType";i:2;s:16:"fuelLevelPercent";d:90;s:15:"distanceToEmpty";i:101;s:15:"refuelingStatus";i:1;s:9:"messageId";s:9:"254764309";}'; var_dump(unserialize($string));
based on gghJJ
Output for 4.3.0 - 7.2.0
array(13) { ["agentId"]=> int(351) ["reservationId"]=> int(316015) ["timestamp"]=> string(19) "2015-04-29 02:39:03" ["longitude"]=> float(3.0908166666667) ["latitude"]=> float(45.7846) ["positionTime"]=> string(19) "2015-04-29 02:38:56" ["totalDistanceVehicle"]=> int(14509) ["totalDistanceBooking"]=> int(4) ["totalDistanceType"]=> int(2) ["fuelLevelPercent"]=> float(90) ["distanceToEmpty"]=> int(101) ["refuelingStatus"]=> int(1) ["messageId"]=> string(9) "254764309" }