3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = [ "_1444734871078_1" => ["attribute" => "enabled", "value" => "1"], "_1444734871078_2" => ["attribute" => "animal_skin", "value" => ""], "_1444734871078_3" => ["attribute" => "brand", "value" => ""], "_1444734871078_4" => ["attribute" => "care", "value" => ""], "_1444734871078_5" => ["attribute" => "collection", "value" => ""], "_1444734871078_6" => ["attribute" => "color", "value" => ""], "_1444734871078_7" => ["attribute" => "commodity_code", "value" => ""], "_1444734871078_8" => ["attribute" => "description", "value" => ""], "_1444734871078_9" => ["attribute" => "fashion", "value" => ""], "_1444734871078_10" => ["attribute" => "fit", "value" => ""], "_1444734871078_11" => ["attribute" => "gender", "value" => ""], "_1444734871078_12" => ["attribute" => "heel_height", "value" => ""], "_1444734871078_13" => ["attribute" => "heel_type", "value" => ""], "_1444734871078_14" => ["attribute" => "lining", "value" => ""], "_1444734871078_15" => ["attribute" => "material", "value" => ""], "_1444734871078_16" => ["attribute" => "name", "value" => ""], "_1444734871078_17" => ["attribute" => "original_season_code", "value" => ""], "_1444734871078_18" => ["attribute" => "product_type", "value" => ""], "_1444734871078_19" => ["attribute" => "season_code", "value" => ""], "_1444734871078_20" => ["attribute" => "shape", "value" => ""], "_1444734871078_21" => ["attribute" => "skutype", "value" => ""], "_1444734871078_22" => ["attribute" => "sole", "value" => ""], "_1444734871078_23" => ["attribute" => "stamp", "value" => ""], "_1444734871078_24" => ["attribute" => "style", "value" => ""], "_1444734871078_25" => ["attribute" => "sub_category", "value" => ""], "_1444734871078_26" => ["attribute" => "web_category_1", "value" => ""], "_1444734871078_27" => ["attribute" => "web_category_2", "value" => ""], "_1444734871078_28" => ["attribute" => "web_category_3", "value" => ""], "_1444734871078_29" => ["attribute" => "web_category_4", "value" => ""], "_1444734871078_30" => ["attribute" => "web_exclusive", "value" => ""], "_1444734871078_31" => ["attribute" => "web_exclusive", "value" => ""], "_1444734871078_32" => ["attribute" => "family", "value" => ""], "_1444734871078_33" => ["attribute" => "back_in_stock", "value" => ""], "_1444734871078_34" => ["attribute" => "bag_depth", "value" => ""], "_1444734871078_35" => ["attribute" => "bag_height", "value" => ""], "_1444734871078_36" => ["attribute" => "bag_strap_drop", "value" => ""], "_1444734871078_37" => ["attribute" => "bag_width", "value" => ""], "_1444734871078_38" => ["attribute" => "best_seller", "value" => ""], "_1444734871078_39" => ["attribute" => "colour_group", "value" => ""], "_1444734871078_40" => ["attribute" => "insock", "value" => ""], "_1444734871078_41" => ["attribute" => "last", "value" => ""], "_1444734871078_42" => ["attribute" => "limited_edition", "value" => ""], "_1444734871078_43" => ["attribute" => "line", "value" => ""], "_1444734871078_44" => ["attribute" => "made_in_britain", "value" => ""], "_1444734871078_45" => ["attribute" => "made_in_italy", "value" => ""], "_1444734871078_46" => ["attribute" => "new_season_offers", "value" => ""], "_1444734871078_47" => ["attribute" => "newin", "value" => ""], "_1444734871078_48" => ["attribute" => "offer", "value" => ""], "_1444734871078_49" => ["attribute" => "preorders", "value" => ""], "_1444734871078_50" => ["attribute" => "rand", "value" => ""], "_1444734871078_51" => ["attribute" => "sale", "value" => ""], "_1444734871078_52" => ["attribute" => "short_description", "value" => ""], "_1444734871078_53" => ["attribute" => "sole_edge", "value" => ""], "_1444734871078_54" => ["attribute" => "trim", "value" => ""], "_1444734871078_55" => ["attribute" => "visible", "value" => ""], "_1444734871078_56" => ["attribute" => "related_fit", "value" => ""], "_1444734871078_57" => ["attribute" => "url_key", "value" => ""], "_1444734871078_58" => ["attribute" => "colour_group", "value" => ""], ]; var_dump(serialize($foo));
based on i2GXj
Output for 5.4.10 - 7.2.0
string(4796) "a:58:{s:16:"_1444734871078_1";a:2:{s:9:"attribute";s:7:"enabled";s:5:"value";s:1:"1";}s:16:"_1444734871078_2";a:2:{s:9:"attribute";s:11:"animal_skin";s:5:"value";s:0:"";}s:16:"_1444734871078_3";a:2:{s:9:"attribute";s:5:"brand";s:5:"value";s:0:"";}s:16:"_1444734871078_4";a:2:{s:9:"attribute";s:4:"care";s:5:"value";s:0:"";}s:16:"_1444734871078_5";a:2:{s:9:"attribute";s:10:"collection";s:5:"value";s:0:"";}s:16:"_1444734871078_6";a:2:{s:9:"attribute";s:5:"color";s:5:"value";s:0:"";}s:16:"_1444734871078_7";a:2:{s:9:"attribute";s:14:"commodity_code";s:5:"value";s:0:"";}s:16:"_1444734871078_8";a:2:{s:9:"attribute";s:11:"description";s:5:"value";s:0:"";}s:16:"_1444734871078_9";a:2:{s:9:"attribute";s:7:"fashion";s:5:"value";s:0:"";}s:17:"_1444734871078_10";a:2:{s:9:"attribute";s:3:"fit";s:5:"value";s:0:"";}s:17:"_1444734871078_11";a:2:{s:9:"attribute";s:6:"gender";s:5:"value";s:0:"";}s:17:"_1444734871078_12";a:2:{s:9:"attribute";s:11:"heel_height";s:5:"value";s:0:"";}s:17:"_1444734871078_13";a:2:{s:9:"attribute";s:9:"heel_type";s:5:"value";s:0:"";}s:17:"_1444734871078_14";a:2:{s:9:"attribute";s:6:"lining";s:5:"value";s:0:"";}s:17:"_1444734871078_15";a:2:{s:9:"attribute";s:8:"material";s:5:"value";s:0:"";}s:17:"_1444734871078_16";a:2:{s:9:"attribute";s:4:"name";s:5:"value";s:0:"";}s:17:"_1444734871078_17";a:2:{s:9:"attribute";s:20:"original_season_code";s:5:"value";s:0:"";}s:17:"_1444734871078_18";a:2:{s:9:"attribute";s:12:"product_type";s:5:"value";s:0:"";}s:17:"_1444734871078_19";a:2:{s:9:"attribute";s:11:"season_code";s:5:"value";s:0:"";}s:17:"_1444734871078_20";a:2:{s:9:"attribute";s:5:"shape";s:5:"value";s:0:"";}s:17:"_1444734871078_21";a:2:{s:9:"attribute";s:7:"skutype";s:5:"value";s:0:"";}s:17:"_1444734871078_22";a:2:{s:9:"attribute";s:4:"sole";s:5:"value";s:0:"";}s:17:"_1444734871078_23";a:2:{s:9:"attribute";s:5:"stamp";s:5:"value";s:0:"";}s:17:"_1444734871078_24";a:2:{s:9:"attribute";s:5:"style";s:5:"value";s:0:"";}s:17:"_1444734871078_25";a:2:{s:9:"attribute";s:12:"sub_category";s:5:"value";s:0:"";}s:17:"_1444734871078_26";a:2:{s:9:"attribute";s:14:"web_category_1";s:5:"value";s:0:"";}s:17:"_1444734871078_27";a:2:{s:9:"attribute";s:14:"web_category_2";s:5:"value";s:0:"";}s:17:"_1444734871078_28";a:2:{s:9:"attribute";s:14:"web_category_3";s:5:"value";s:0:"";}s:17:"_1444734871078_29";a:2:{s:9:"attribute";s:14:"web_category_4";s:5:"value";s:0:"";}s:17:"_1444734871078_30";a:2:{s:9:"attribute";s:13:"web_exclusive";s:5:"value";s:0:"";}s:17:"_1444734871078_31";a:2:{s:9:"attribute";s:13:"web_exclusive";s:5:"value";s:0:"";}s:17:"_1444734871078_32";a:2:{s:9:"attribute";s:6:"family";s:5:"value";s:0:"";}s:17:"_1444734871078_33";a:2:{s:9:"attribute";s:13:"back_in_stock";s:5:"value";s:0:"";}s:17:"_1444734871078_34";a:2:{s:9:"attribute";s:9:"bag_depth";s:5:"value";s:0:"";}s:17:"_1444734871078_35";a:2:{s:9:"attribute";s:10:"bag_height";s:5:"value";s:0:"";}s:17:"_1444734871078_36";a:2:{s:9:"attribute";s:14:"bag_strap_drop";s:5:"value";s:0:"";}s:17:"_1444734871078_37";a:2:{s:9:"attribute";s:9:"bag_width";s:5:"value";s:0:"";}s:17:"_1444734871078_38";a:2:{s:9:"attribute";s:11:"best_seller";s:5:"value";s:0:"";}s:17:"_1444734871078_39";a:2:{s:9:"attribute";s:12:"colour_group";s:5:"value";s:0:"";}s:17:"_1444734871078_40";a:2:{s:9:"attribute";s:6:"insock";s:5:"value";s:0:"";}s:17:"_1444734871078_41";a:2:{s:9:"attribute";s:4:"last";s:5:"value";s:0:"";}s:17:"_1444734871078_42";a:2:{s:9:"attribute";s:15:"limited_edition";s:5:"value";s:0:"";}s:17:"_1444734871078_43";a:2:{s:9:"attribute";s:4:"line";s:5:"value";s:0:"";}s:17:"_1444734871078_44";a:2:{s:9:"attribute";s:15:"made_in_britain";s:5:"value";s:0:"";}s:17:"_1444734871078_45";a:2:{s:9:"attribute";s:13:"made_in_italy";s:5:"value";s:0:"";}s:17:"_1444734871078_46";a:2:{s:9:"attribute";s:17:"new_season_offers";s:5:"value";s:0:"";}s:17:"_1444734871078_47";a:2:{s:9:"attribute";s:5:"newin";s:5:"value";s:0:"";}s:17:"_1444734871078_48";a:2:{s:9:"attribute";s:5:"offer";s:5:"value";s:0:"";}s:17:"_1444734871078_49";a:2:{s:9:"attribute";s:9:"preorders";s:5:"value";s:0:"";}s:17:"_1444734871078_50";a:2:{s:9:"attribute";s:4:"rand";s:5:"value";s:0:"";}s:17:"_1444734871078_51";a:2:{s:9:"attribute";s:4:"sale";s:5:"value";s:0:"";}s:17:"_1444734871078_52";a:2:{s:9:"attribute";s:17:"short_description";s:5:"value";s:0:"";}s:17:"_1444734871078_53";a:2:{s:9:"attribute";s:9:"sole_edge";s:5:"value";s:0:"";}s:17:"_1444734871078_54";a:2:{s:9:"attribute";s:4:"trim";s:5:"value";s:0:"";}s:17:"_1444734871078_55";a:2:{s:9:"attribute";s:7:"visible";s:5:"value";s:0:"";}s:17:"_1444734871078_56";a:2:{s:9:"attribute";s:11:"related_fit";s:5:"value";s:0:"";}s:17:"_1444734871078_57";a:2:{s:9:"attribute";s:7:"url_key";s:5:"value";s:0:"";}s:17:"_1444734871078_58";a:2:{s:9:"attribute";s:12:"colour_group";s:5:"value";s:0:"";}}"
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/8YYJ3 on line 3
Process exited with code 255.