3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $serialized_data = 'O:16:"ViaEuropaService":37:{s:17:"*service_params";a:10:{s:5:"insee";s:5:"75056";s:5:"price";s:2:"15";s:7:"country";s:3:"all";s:4:"lang";s:2:"en";s:10:"fromrownum";i:1;s:8:"torownum";i:15;s:4:"desc";s:3:"yes";s:6:"withXY";s:3:"yes";s:3:"xyf";s:1:"1";s:4:"html";s:3:"yes";}s:14:"*param_names";a:24:{i:0;s:4:"ckid";i:1;s:4:"lang";i:2;s:5:"nbmax";i:3;s:7:"country";i:4;s:6:"withXY";i:5;s:3:"xyf";i:6;s:4:"desc";i:7;s:6:"region";i:8;s:4:"html";i:9;s:5:"nbmax";i:10;s:11:"placelistid";i:11;s:4:"city";i:12;s:4:"lang";i:13;s:16:"leadingcommentid";i:14;s:8:"category";i:15;s:4:"mood";i:16;s:11:"subcategory";i:17;s:10:"gastronomy";i:18;s:5:"price";i:19;s:11:"subcategory";i:20;s:10:"fromrownum";i:21;s:8:"torownum";i:22;s:5:"insee";i:23;s:10:"districtid";}s:26:"ViaEuropaServiceposition";i:0;s:36:"ViaEuropaServiceiterating_elements";a:0:{}s:12:"machine_name";s:18:"via_europa_service";s:11:"description";s:35:"Service to call info from viaeuropa";s:4:"pool";s:12:"recette2_ptp";s:9:"processor";O:30:"ViaEuropaMessageQueueProcessor":2:{s:43:"MessageQueueSimpleXmlProcessorprettyPrint";b:1;s:46:"DrupalMessageQueueProcessorfilterEmptyValues";b:1;}s:5:"cache";s:2:"30";s:4:"stub";s:1:"0";s:7:"timeout";s:2:"45";s:5:"debug";s:1:"0";s:13:"logging_level";s:1:"0";s:5:"queue";a:2:{s:7:"request";s:50:"http://webservices.viafrance.com/getplacelist.aspx";s:8:"response";s:0:"";}s:9:"*params";a:0:{}s:10:"*message";a:11:{s:4:"ckid";s:10:"20017DA104";s:4:"html";s:3:"yes";s:5:"insee";s:5:"75056";s:5:"price";s:2:"15";s:7:"country";s:3:"all";s:4:"lang";s:2:"en";s:10:"fromrownum";i:1;s:8:"torownum";i:15;s:4:"desc";s:3:"yes";s:6:"withXY";s:3:"yes";s:3:"xyf";s:1:"1";}s:10:"*headers";a:0:{}s:11:"*response";N;s:14:"*rawResponse";O:8:"stdClass":2:{s:4:"body";s:125:"<?xml version="1.0" encoding="utf-8"?><viaResult Count="0"> <Language>GB</Language><Status>-1</Status></viaResult>";s:4:"data";a:2:{s:12:"request_info";a:21:{s:3:"url";s:167:"http://webservices.viafrance.com/getplacelist.aspx?ckid=20017DA104&html=yes&insee=75056&price=15&country=all&lang=en&fromrownum=1&torownum=15&desc=yes&withXY=yes&xyf=1";s:12:"content_type";s:23:"text/xml; charset=utf-8";s:9:"http_code";i:200;s:11:"header_size";i:246;s:12:"request_size";i:198;s:8:"filetime";i:-1;s:17:"ssl_verify_result";i:0;s:14:"redirect_count";i:0;s:10:"total_time";d:0.01045399999999999975097697557657738798297941684722900390625;s:15:"namelookup_time";d:2.099999999999999883795211153003634763081208802759647369384765625E-5;s:12:"connect_time";d:2.099999999999999883795211153003634763081208802759647369384765625E-5;s:16:"pretransfer_time";d:2.19999999999999994279749337966478606176679022610187530517578125E-5;s:11:"size_upload";d:0;s:13:"size_download";d:125;s:14:"speed_download";d:11957;s:12:"speed_upload";d:0;s:23:"download_content_length";d:125;s:21:"upload_content_length";d:0;s:18:"starttransfer_time";d:0.0104349999999999998312461002569762058556079864501953125;s:13:"redirect_time";d:0;s:8:"certinfo";a:0:{}}s:16:"request_response";s:125:"<?xml version="1.0" encoding="utf-8"?><viaResult Count="0"> <Language>GB</Language> <Status>-1</Status></viaResult>";}}s:13:"*rawRequest";a:11:{s:4:"ckid";s:10:"20017DA104";s:4:"html";s:3:"yes";s:5:"insee";s:5:"75056";s:5:"price";s:2:"15";s:7:"country";s:3:"all";s:4:"lang";s:2:"en";s:10:"fromrownum";i:1;s:8:"torownum";i:15;s:4:"desc";s:3:"yes";s:6:"withXY";s:3:"yes";s:3:"xyf";s:1:"1";}s:16:"*correlationId";s:17:"WWW-5374afc034ea4";s:13:"*other_data";N;s:15:"*brokerConfig";O:30:"DrupalMessageQueueBrokerConfig":9:{s:12:"requestQueue";s:50:"http://webservices.viafrance.com/getplacelist.aspx";s:13:"responseQueue";s:0:"";s:17:"*responseSource";s:5:"CACHE";s:7:"timeout";s:2:"45";s:11:"cacheStatus";b:1;s:8:"cacheKey";s:51:"via_europa_service:02c71a8177f82178fb14f6191086abf0";s:8:"cacheTTL";s:2:"30";s:4:"stub";s:1:"0";s:12:"stubLocation";s:119:"/srv/eurostar/htdocs/profiles/eurostar/modules/custom/interaction/modules/via_europa_service/services/stubs/default.xml";}s:16:"*stub_location";N;s:16:"*pool_instance";O:34:"DrupalMessageQueuePointToPointPool":11:{s:12:"machine_name";s:12:"recette2_ptp";s:11:"description";s:49:"Development pool for point-to-point curl services";s:12:"distribution";i:0;s:10:"*brokers";a:1:{i:0;O:28:"DrupalMessageQueueCurlBroker":9:{s:29:"*basicAuthorizationRequired";b:0;s:11:"*username";N;s:11:"*password";N;s:13:"*curlHandle";N;s:16:"*requestMethod";N;s:44:"DrupalMessageQueueCurlBrokerrequestMessage";a:11:{s:4:"ckid";s:10:"20017DA104";s:4:"html";s:3:"yes";s:5:"insee";s:5:"75056";s:5:"price";s:2:"15";s:7:"country";s:3:"all";s:4:"lang";s:2:"en";s:10:"fromrownum";i:1;s:8:"torownum";i:15;s:4:"desc";s:3:"yes";s:6:"withXY";s:3:"yes";s:3:"xyf";s:1:"1";}s:44:"DrupalMessageQueueCurlBrokerrequestHeaders";a:0:{}s:33:"DrupalMessageQueueBrokertimeout";s:2:"45";s:11:"*requests";a:0:{}}}s:8:"disabled";b:0;s:11:"api_version";i:1;s:13:"export_module";s:11:"interaction";s:4:"type";s:7:"Default";s:11:"export_type";i:2;s:12:"in_code_only";b:1;s:5:"table";s:17:"messagequeue_pool";}s:42:"DrupalMessageQueueServicelogger_disabled";N;s:40:"DrupalMessageQueueServicepool_instance";N;s:41:"DrupalMessageQueueServiceresponseSource";N;s:8:"disabled";b:0;s:11:"api_version";i:1;s:10:"base_class";s:16:"ViaEuropaService";s:5:"table";s:20:"messagequeue_service";s:4:"type";s:10:"Overridden";s:11:"export_type";i:3;s:13:"export_module";s:18:"via_europa_service";s:4:"sort";s:8:"evttitle";s:12:"showcountmax";s:3:"yes";}'; $data = unserialize($serialized_data); var_dump($data);
Output for 4.3.10 - 4.4.9, 5.0.3 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Error at offset 51 of 5428 bytes in /in/ZRqnS on line 3 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [O:16:"ViaEuropaService":37:{s:17:"*service_params";a:10:{s:5:"insee";s:5:"75056";s:5:"price";s:2:"15";s:7:"country";s:3:"all";s:4:"lang";s:2:"en";s:10:"fromrownum";i:1;s:8:"torownum";i:15;s:4:"desc";s:3:"yes";s:6:"withXY";s:3:"yes";s:3:"xyf";s:1:"1";s:4:"html";s:3:"yes";}s:14:"*param_names";a:24:{i:0;s:4:"ckid";i:1;s:4:"lang";i:2;s:5:"nbmax";i:3;s:7:"country";i:4;s:6:"withXY";i:5;s:3:"xyf";i:6;s:4:"desc";i:7;s:6:"region";i:8;s:4:"html";i:9;s:5:"nbmax";i:10;s:11:"placelistid";i:11;s:4:"city";i:12;s:4:"lang";i:13;s:16:"leadingcommentid";i:14;s:8:"category";i:15;s:4:"mood";i:16;s:11:"subcategory";i:17;s:10:"gastronomy";i:18;s:5:"price";i:19;s:11:"subcategory";i:20;s:10:"fromrownum";i:21;s:8:"torownum";i:22;s:5:"insee";i:23;s:10:"districtid";}s:26:"ViaEuropaServiceposition";i:0;s:36:"ViaEuropaServiceiterating_elements";a:0:{}s:12:"machine_name";s:18:"via_europa_service";s:11:"description";s:35:"Service to call info from viaeuropa";s:4:"pool";s:12:"recette2_ptp";s:9:"processor";O:30:"ViaEur]. Expected '"' but got 'a'. in /in/ZRqnS on line 3 bool(false)
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.2
Notice: unserialize(): Error at offset 53 of 5428 bytes in /in/ZRqnS on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 53 of 5428 bytes in /in/ZRqnS on line 3 bool(false)