3v4l.org

run code in 300+ PHP versions simultaneously
<?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(mysql_real_escape_string(serialize($foo)));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0150.00716.88
8.3.50.0060.00916.13
8.3.40.0170.00318.67
8.3.30.0060.00918.68
8.3.20.0040.00420.16
8.3.10.0080.00023.65
8.3.00.0030.00623.52
8.2.180.0130.00616.88
8.2.170.0070.01019.04
8.2.160.0150.00022.96
8.2.150.0030.00624.18
8.2.140.0120.00324.66
8.2.130.0060.00319.73
8.2.120.0050.00326.35
8.2.110.0140.00319.33
8.2.100.0120.00018.04
8.2.90.0040.00419.04
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0080.00017.91
8.2.50.0040.00418.07
8.2.40.0000.00822.32
8.2.30.0030.00520.70
8.2.20.0040.00417.57
8.2.10.0040.00418.07
8.2.00.0000.00818.00
8.1.280.0100.01025.92
8.1.270.0000.00822.19
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00418.98
8.1.230.0090.00319.15
8.1.220.0070.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0070.00418.49
8.1.160.0000.00720.73
8.1.150.0070.00018.90
8.1.140.0040.00419.54
8.1.130.0000.00717.70
8.1.120.0040.00417.30
8.1.110.0000.00717.43
8.1.100.0040.00417.31
8.1.90.0000.00817.36
8.1.80.0000.00817.40
8.1.70.0000.00817.43
8.1.60.0000.00817.53
8.1.50.0000.00817.32
8.1.40.0030.00517.52
8.1.30.0040.00417.61
8.1.20.0080.00017.66
8.1.10.0030.00517.63
8.1.00.0000.00817.52
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0070.00018.40
8.0.270.0030.00317.20
8.0.260.0040.00417.14
8.0.250.0040.00416.81
8.0.240.0000.00816.93
8.0.230.0030.00616.84
8.0.220.0060.00016.89
8.0.210.0000.00716.76
8.0.200.0000.00616.95
8.0.190.0050.00316.84
8.0.180.0000.00716.92
8.0.170.0050.00216.97
8.0.160.0000.00717.00
8.0.150.0070.00016.87
8.0.140.0030.00616.88
8.0.130.0030.00513.27
8.0.120.0000.00816.78
8.0.110.0080.00016.81
8.0.100.0070.00016.73
8.0.90.0080.00016.84
8.0.80.0000.01516.92
8.0.70.0000.00716.87
8.0.60.0070.00016.82
8.0.50.0040.00416.86
8.0.30.0100.01017.13
8.0.20.0100.00817.41
8.0.10.0040.00417.07
8.0.00.0110.01016.90
7.4.330.0000.00516.70
7.4.320.0030.00316.59
7.4.300.0030.00616.42
7.4.290.0040.00416.62
7.4.280.0080.00316.50
7.4.270.0040.00416.63
7.4.260.0040.00416.48
7.4.250.0040.00416.57
7.4.240.0020.00516.63
7.4.230.0000.00716.44
7.4.220.0150.01216.56
7.4.210.0080.00716.54
7.4.200.0070.00016.62
7.4.160.0070.01016.46
7.4.150.0080.01117.40
7.4.140.0110.01117.86
7.4.130.0080.01216.64
7.4.120.0130.00716.55
7.4.110.0100.01316.50
7.4.100.0120.00916.63
7.4.90.0160.00016.45
7.4.80.0030.01519.39
7.4.70.0060.01016.51
7.4.60.0100.00716.61
7.4.50.0060.00916.78
7.4.40.0080.00816.32
7.4.30.0100.00716.56
7.4.00.0070.00715.13
7.3.330.0030.00313.11
7.3.320.0000.00513.26
7.3.310.0040.00416.14
7.3.300.0000.00716.30
7.3.290.0070.00016.02
7.3.280.0100.01216.30
7.3.270.0100.00717.40
7.3.260.0170.00016.29
7.3.250.0080.01216.44
7.3.240.0090.00916.38
7.3.230.0150.00816.50
7.3.210.0070.01116.55
7.3.200.0080.00819.39
7.3.190.0060.01016.13
7.3.180.0140.00716.46
7.3.170.0070.01016.45
7.3.160.0090.00916.45
7.2.330.0200.00016.42
7.2.320.0040.02016.56
7.2.310.0110.00716.55
7.2.300.0150.00316.23
7.2.290.0090.01216.59
7.2.60.0080.00816.46
7.2.00.0000.01119.25
7.1.200.0000.01415.71
7.1.100.0150.00317.52
7.1.70.0030.00917.03
7.1.60.0030.02119.20
7.1.50.0090.01216.65
7.1.00.0000.08022.28
7.0.200.0120.00414.84
7.0.60.0070.08321.61
7.0.50.0070.07717.91
7.0.40.0030.04320.26
7.0.30.0130.04720.20
7.0.20.0330.07320.33
7.0.10.0100.08720.30
7.0.00.0070.04320.09
5.6.280.0000.03721.19
5.6.210.0070.08720.79
5.6.200.0000.04318.26
5.6.190.0070.08320.77
5.6.180.0330.04320.41
5.6.170.0200.06020.50
5.6.160.0070.06720.49
5.6.150.0000.05318.24
5.6.140.0070.07318.20
5.6.130.0100.07718.18
5.6.120.0100.08021.01
5.6.110.0100.03721.12
5.6.100.0070.08321.09
5.6.90.0170.07321.13
5.6.80.0230.06320.39
5.5.350.0200.08720.48
5.5.340.0000.04318.01
5.5.330.0100.07720.32
5.5.320.0270.05020.31
5.5.310.0130.05020.31
5.5.300.0070.06318.01
5.5.290.0070.08018.01
5.5.280.0030.06020.73
5.5.270.0030.04721.00
5.5.260.0070.07021.00
5.5.250.0030.08320.83
5.5.240.0200.07720.32

preferences:
54.03 ms | 400 KiB | 5 Q