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(mysqli_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.70.0040.01118.30
8.3.60.0130.01316.63
8.3.50.0090.00921.27
8.3.40.0090.00618.74
8.3.30.0070.00718.68
8.3.20.0000.00720.20
8.3.10.0040.00423.48
8.3.00.0000.00823.66
8.2.190.0150.00018.43
8.2.180.0070.01416.63
8.2.170.0120.00618.86
8.2.160.0080.00622.96
8.2.150.0040.00424.18
8.2.140.0030.01224.66
8.2.130.0050.00326.16
8.2.120.0040.00419.65
8.2.110.0110.01122.18
8.2.100.0060.00617.93
8.2.90.0040.00419.07
8.2.80.0050.00317.97
8.2.70.0030.00617.38
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00822.34
8.2.30.0040.00420.58
8.2.20.0040.00417.77
8.2.10.0070.00018.14
8.2.00.0030.00617.98
8.1.280.0070.01025.92
8.1.270.0090.00922.14
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.97
8.1.230.0040.00819.07
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.25
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0050.00518.53
8.1.160.0040.00420.71
8.1.150.0040.00418.86
8.1.140.0000.00819.45
8.1.130.0000.00717.59
8.1.120.0000.00717.45
8.1.110.0090.00017.31
8.1.100.0040.00417.40
8.1.90.0050.00317.32
8.1.80.0040.00417.29
8.1.70.0040.00417.41
8.1.60.0040.00417.54
8.1.50.0040.00417.38
8.1.40.0000.00817.50
8.1.30.0050.00317.73
8.1.20.0040.00417.60
8.1.10.0040.00417.50
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0000.00718.30
8.0.270.0000.00717.20
8.0.260.0060.00017.21
8.0.250.0030.00316.95
8.0.240.0040.00416.95
8.0.230.0040.00416.93
8.0.220.0000.00816.90
8.0.210.0040.00316.89
8.0.200.0060.00017.00
8.0.190.0040.00416.84
8.0.180.0030.00316.91
8.0.170.0070.00016.94
8.0.160.0070.00016.93
8.0.150.0080.00016.93
8.0.140.0080.00016.88
8.0.130.0050.00013.33
8.0.120.0000.00816.75
8.0.110.0000.00816.86
8.0.100.0040.00416.96
8.0.90.0030.00316.87
8.0.80.0060.01016.96
8.0.70.0040.00416.90
8.0.60.0060.00316.82
8.0.50.0030.00517.01
8.0.30.0100.00816.89
8.0.20.0080.01017.40
8.0.10.0000.00816.98
8.0.00.0150.00716.68
7.4.330.0030.00316.84
7.4.320.0000.00616.50
7.4.300.0000.01116.48
7.4.290.0000.00716.60
7.4.280.0050.00516.62
7.4.270.0000.00716.52
7.4.260.0000.00816.50
7.4.250.0040.00416.47
7.4.240.0030.00316.51
7.4.230.0070.00016.48
7.4.220.0070.01616.61
7.4.210.0060.00816.45
7.4.200.0040.00416.36
7.4.160.0040.01116.68
7.4.150.0130.00617.40
7.4.140.0070.01117.86
7.4.130.0120.00616.39
7.4.120.0070.01116.44
7.4.110.0210.00316.66
7.4.100.0070.01116.58
7.4.90.0130.00316.61
7.4.80.0150.00619.39
7.4.70.0100.00716.64
7.4.60.0100.00716.49
7.4.50.0000.01316.22
7.4.40.0130.00616.44
7.4.30.0110.01116.51
7.4.00.0100.00614.89
7.3.330.0020.00213.11
7.3.320.0050.00013.26
7.3.310.0000.00716.41
7.3.300.0000.00716.29
7.3.290.0070.00016.24
7.3.280.0100.00916.24
7.3.270.0060.01117.40
7.3.260.0070.01016.32
7.3.250.0110.00816.45
7.3.240.0120.00816.54
7.3.230.0090.00916.39
7.3.210.0050.01516.30
7.3.200.0110.00719.39
7.3.190.0070.01016.33
7.3.180.0060.00916.30
7.3.170.0070.01416.33
7.3.160.0140.00316.35
7.3.120.0100.00814.84
7.3.110.0030.01414.70
7.3.100.0090.00614.63
7.3.90.0070.01014.59
7.3.80.0030.00814.79
7.3.70.0050.00814.76
7.3.60.0070.00614.75
7.3.50.0060.00614.72
7.3.40.0070.00914.69
7.3.30.0090.00714.81
7.3.20.0040.00816.51
7.3.10.0050.00916.47
7.3.00.0050.00916.47
7.2.330.0140.00416.38
7.2.320.0170.00616.55
7.2.310.0080.00816.54
7.2.300.0100.01316.50
7.2.290.0070.01116.41
7.2.250.0040.01214.87
7.2.240.0100.00914.97
7.2.230.0050.01114.87
7.2.220.0050.01014.86
7.2.210.0030.01214.95
7.2.200.0080.00714.88
7.2.190.0070.00714.95
7.2.180.0060.00715.04
7.2.170.0060.01114.81
7.2.130.0060.00916.65
7.2.120.0060.00616.61
7.2.110.0030.01416.71
7.2.100.0100.00616.57
7.2.90.0130.00716.64
7.2.80.0160.00316.87
7.2.70.0110.00316.36
7.2.60.0090.00316.67
7.2.50.0060.00916.57
7.2.40.0000.01016.69
7.2.30.0090.00316.70
7.2.20.0100.00316.40
7.2.10.0070.00716.66
7.2.00.0040.01118.09
7.1.330.0120.00315.67
7.1.320.0050.00815.57
7.1.310.0070.01015.51
7.1.300.0080.00515.53
7.1.290.0070.00715.64
7.1.280.0050.01215.64
7.1.270.0080.00515.63
7.1.260.0070.00115.61
7.1.250.0040.00415.14
7.1.200.0040.00815.66
7.1.100.0180.00315.86
7.1.70.0030.01016.74
7.1.60.0030.02019.20
7.1.50.0000.01316.77
7.1.00.0070.07322.56
7.0.200.0110.00614.75
7.0.60.0070.06021.75
7.0.50.0130.07317.84
7.0.40.0030.04320.24
7.0.30.0200.04020.20
7.0.20.0300.07320.13
7.0.10.0030.05720.16
7.0.00.0100.08720.11
5.6.280.0030.03320.97
5.6.210.0030.07720.60
5.6.200.0030.06718.25
5.6.190.0070.04320.58
5.6.180.0230.04720.60
5.6.170.0200.05020.62
5.6.160.0170.07320.41
5.6.150.0070.08018.11
5.6.140.0100.07718.11
5.6.130.0000.08718.23
5.6.120.0130.07721.18
5.6.110.0130.08021.03
5.6.100.0030.05721.15
5.6.90.0100.08321.04
5.6.80.0200.06320.41
5.5.350.0200.04020.44
5.5.340.0000.04017.96
5.5.330.0030.09320.40
5.5.320.0400.04720.27
5.5.310.0230.04020.29
5.5.300.0200.06718.03
5.5.290.0070.08318.01
5.5.280.0130.08020.81
5.5.270.0130.03020.68
5.5.260.0200.07320.69
5.5.250.0030.04720.70
5.5.240.0070.09020.32

preferences:
48.82 ms | 401 KiB | 5 Q