3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $error_serialized_data = 'a:66:{s:4:"type";s:7:"ajw_csv";s:7:"channel";s:2:"11";s:8:"filename";s:91:"/var/www/vhosts/frifri.com/httpdocs/imports/products.csv";s:9:"delimiter";s:1:",";s:8:"encloser";s:1:""";s:4:"skip";s:1:"1";s:6:"update";s:1:"y";s:6:"unique";s:15:"cf_product_code";s:6:"author";s:1:"1";s:12:"author_field";s:0:"";s:12:"author_check";s:11:"screen_name";s:6:"offset";s:1:"0";s:5:"title";s:1:"0";s:9:"url_title";s:2:"19";s:4:"date";s:0:"";s:11:"expiry_date";s:0:"";s:9:"timestamp";s:23:"cf_product_date_updated";s:10:"delete_old";s:1:"y";s:14:"category_value";s:0:"";s:9:"cat_field";s:2:"20";s:9:"cat_group";s:1:"1";s:13:"cat_delimiter";s:1:",";s:6:"status";s:7:"default";s:15:"import_comments";b:0;s:19:"cf_product_navtitle";s:0:"";s:19:"cf_product_keywords";s:0:"";s:22:"cf_product_description";s:0:"";s:13:"cf_product_id";s:1:"0";s:16:"cf_product_width";s:1:"6";s:17:"cf_product_height";s:1:"5";s:16:"cf_product_depth";s:1:"7";s:15:"cf_product_code";s:1:"0";s:21:"cf_product_rangetitle";s:0:"";s:19:"cf_product_features";s:0:"";s:16:"cf_product_power";s:2:"10";s:15:"cf_product_fuel";s:1:"8";s:29:"cf_product_productdescription";s:2:"18";s:15:"cf_product_slug";s:0:"";s:20:"cf_product_specsheet";s:0:"";s:19:"cf_products_related";s:2:"17";s:31:"cf_products_related_playa_field";s:11:"field_id_54";s:17:"cf_product_manual";s:2:"22";s:16:"cf_product_image";s:2:"21";s:19:"cf_product_brochure";s:0:"";s:24:"cf_product_product_group";s:1:"1";s:32:"cf_product_catalogue_description";s:1:"2";s:32:"cf_product_additional_desription";s:1:"3";s:21:"cf_product_model_type";s:1:"4";s:18:"cf_product_baskets";s:1:"9";s:24:"cf_product_tank_capacity";s:2:"11";s:17:"cf_product_output";s:2:"12";s:18:"cf_product_voltage";s:2:"13";s:17:"cf_product_supply";s:2:"14";s:22:"cf_product_supply_line";s:2:"15";s:25:"cf_product_optional_suply";s:2:"16";s:23:"cf_product_gross_weight";s:0:"";s:28:"cf_product_packed_dimensions";s:0:"";s:25:"cf_product_price_sterling";s:0:"";s:21:"cf_product_price_euro";s:0:"";s:24:"cf_product_in_price_list";s:0:"";s:23:"cf_product_date_updated";s:0:"";s:2:"id";s:1:"4";s:17:"cf_product_marine";s:0:"";s:17:"cf_product_hybrid";s:0:"";s:22:"cf_product_filteration";s:0:"";s:17:"cf_product_basket";s:0:"";}'; $fixed_serialized_data = preg_replace_callback ( '!s:(\d+):"(.*?)";!', function($match) { return ($match[1] == strlen($match[2])) ? $match[0] : 's:' . strlen($match[2]) . ':"' . $match[2] . '";'; }, $error_serialized_data ); echo $fixed_serialized_data;
based on 49UWr
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
a:66:{s:4:"type";s:7:"ajw_csv";s:7:"channel";s:2:"11";s:8:"filename";s:56:"/var/www/vhosts/frifri.com/httpdocs/imports/products.csv";s:9:"delimiter";s:1:",";s:8:"encloser";s:1:""";s:4:"skip";s:1:"1";s:6:"update";s:1:"y";s:6:"unique";s:15:"cf_product_code";s:6:"author";s:1:"1";s:12:"author_field";s:0:"";s:12:"author_check";s:11:"screen_name";s:6:"offset";s:1:"0";s:5:"title";s:1:"0";s:9:"url_title";s:2:"19";s:4:"date";s:0:"";s:11:"expiry_date";s:0:"";s:9:"timestamp";s:23:"cf_product_date_updated";s:10:"delete_old";s:1:"y";s:14:"category_value";s:0:"";s:9:"cat_field";s:2:"20";s:9:"cat_group";s:1:"1";s:13:"cat_delimiter";s:1:",";s:6:"status";s:7:"default";s:15:"import_comments";b:0;s:19:"cf_product_navtitle";s:0:"";s:19:"cf_product_keywords";s:0:"";s:22:"cf_product_description";s:0:"";s:13:"cf_product_id";s:1:"0";s:16:"cf_product_width";s:1:"6";s:17:"cf_product_height";s:1:"5";s:16:"cf_product_depth";s:1:"7";s:15:"cf_product_code";s:1:"0";s:21:"cf_product_rangetitle";s:0:"";s:19:"cf_product_features";s:0:"";s:16:"cf_product_power";s:2:"10";s:15:"cf_product_fuel";s:1:"8";s:29:"cf_product_productdescription";s:2:"18";s:15:"cf_product_slug";s:0:"";s:20:"cf_product_specsheet";s:0:"";s:19:"cf_products_related";s:2:"17";s:31:"cf_products_related_playa_field";s:11:"field_id_54";s:17:"cf_product_manual";s:2:"22";s:16:"cf_product_image";s:2:"21";s:19:"cf_product_brochure";s:0:"";s:24:"cf_product_product_group";s:1:"1";s:32:"cf_product_catalogue_description";s:1:"2";s:32:"cf_product_additional_desription";s:1:"3";s:21:"cf_product_model_type";s:1:"4";s:18:"cf_product_baskets";s:1:"9";s:24:"cf_product_tank_capacity";s:2:"11";s:17:"cf_product_output";s:2:"12";s:18:"cf_product_voltage";s:2:"13";s:17:"cf_product_supply";s:2:"14";s:22:"cf_product_supply_line";s:2:"15";s:25:"cf_product_optional_suply";s:2:"16";s:23:"cf_product_gross_weight";s:0:"";s:28:"cf_product_packed_dimensions";s:0:"";s:25:"cf_product_price_sterling";s:0:"";s:21:"cf_product_price_euro";s:0:"";s:24:"cf_product_in_price_list";s:0:"";s:23:"cf_product_date_updated";s:0:"";s:2:"id";s:1:"4";s:17:"cf_product_marine";s:0:"";s:17:"cf_product_hybrid";s:0:"";s:22:"cf_product_filteration";s:0:"";s:17:"cf_product_basket";s:0:"";}