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(\PDO::quote(serialize($foo)));
based on br8QH
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Non-static method PDO::quote() cannot be called statically in /in/RotLS:64 Stack trace: #0 {main} thrown in /in/RotLS on line 64
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Fatal error: Non-static method PDO::quote() cannot be called statically in /in/RotLS on line 64
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/RotLS on line 3
Process exited with code 255.