3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array(array( 'entity_id' => "14", 'entity_type_id' => "1", 'attribute_set_id' => "0", 'website_id' => "1", 'email' => "office@solarpower-augsburg.de", 'group_id' => "1", 'increment_id' => "000000011", 'store_id' => "0", 'created_at' => "2013-10-22 10:28:59", 'updated_at' => "2013-10-22 10:51:50", 'is_active' => "1", 'disable_auto_group_change' => "0", 'prefix' => "Herr", 'firstname' => "Gabriele ", 'middlename' => NULL, 'lastname' => "Ament", 'suffix' => "Solarpower Energy for Life", 'name' => "Herr Gabriele Ament Solarpower Energy for Life", 'is_partner' => "1", 'default_billing' => "16", 'billing_firstname' => "Gabriele ", 'billing_lastname' => "Ament", 'billing_postcode' => "86199", 'billing_city' => "Augsburg", 'billing_telephone' => "0821·90732-50", 'billing_country_id' => "DE", 'billing_street' => "Zum Fuggerschloß 38", 'billing_region' => "Bayern", 'billing_company' => "Solarpower Energy for Life Gabriele Ament e.K.", 'tom_geo_latitude' => "48.3237705", 'tom_geo_longitude' => "10.8221745", ) ); $dom = new DOMDocument("1.0","UTF-8"); $node = $dom->createElement("Markers"); $parnode = $dom->appendChild($node); foreach ($row as $key => $value) { $address = $value['billing_street'] .','. $value['billing_country_id'] .'-'. $value['billing_postcode'] .' '. $value['billing_city']; $distance = 6371 * 0; $contactPerson = $value['billing_firstname'] .' '. $value['billing_lastname']; // ADD TO XML DOCUMENT NODE $marker = $dom->createElement("Marker"); $newnode = $parnode->appendChild($marker); $newnode->setAttribute("StoreId", $value['store_id']); $newnode->setAttribute("Lat", $value['tom_geo_latitude']); $newnode->setAttribute("Lng", $value['tom_geo_longitude']); $newnode->setAttribute("Distance", $distance); $newnode->setAttribute("ImgUrl", $key['ImgUrl']); $newnode->setAttribute("CategoryIcon", '/skin/frontend/default/solarinvert/tom/dealer/default.png'); $newnode->setAttribute("Contactperson", $contactPerson); $newnode->setAttribute("Phone", $value['billing_telephone']); $newnode->setAttribute("Logo", $value['logo']); $newnode->setAttribute("Country", $value['billing_country_id']); $newnode->setAttribute("Fax", $value['billing_fax']); $newnode->setAttribute("Address", $address); $newnode->setAttribute("Type", $value['Type']); $newnode->setAttribute("Email", $value['email']); $newnode->setAttribute("Website", $value['Website']); $newnode->setAttribute("State", $value['billing_region']); $newnode->setAttribute("City", $value['billing_city']); $newnode->setAttribute("Name", $value['billing_company']); $newnode->setAttribute("LabelId", $key['LabelId']); $newnode->setAttribute("LabelText", $key['LabelText']); $newnode->setAttribute("Google", $key['Google']); $newnode->setAttribute("Facebook", $key['Facebook']); $newnode->setAttribute("Twitter", $key['Twitter']); $newnode->setAttribute("Printrest", $key['Printrest']); $newnode->setAttribute("Gallery", $row['Gallery']); $newnode->setAttribute("Info", $row['Info']); $newnode->setAttribute("Working", $row['Working']); $newnode->setAttribute("Video", $row['Video']); $newnode->setAttribute("Direction", $row['Direction']); } echo $dom->saveXML();

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.0170.00318.81
8.3.50.0090.01121.27
8.3.40.0090.00619.16
8.3.30.0070.00720.64
8.3.20.0040.00420.59
8.3.10.0000.00821.27
8.3.00.0040.00422.39
8.2.180.0100.01016.88
8.2.170.0120.00322.96
8.2.160.0100.00322.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00521.05
8.2.110.0060.00320.48
8.2.100.0120.00019.82
8.2.90.0040.00419.59
8.2.80.0080.00017.97
8.2.70.0060.00317.88
8.2.60.0060.00318.30
8.2.50.0060.00318.07
8.2.40.0030.00618.59
8.2.30.0040.00419.62
8.2.20.0000.00817.99
8.2.10.0050.00318.22
8.2.00.0000.00918.09
8.1.280.0070.01125.92
8.1.270.0080.00023.99
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0060.00324.05
8.1.230.0110.00017.83
8.1.220.0060.00318.03
8.1.210.0030.00618.77
8.1.200.0000.00917.60
8.1.190.0060.00317.78
8.1.180.0060.00318.10
8.1.170.0100.00018.96
8.1.160.0000.00719.16
8.1.150.0000.00818.97
8.1.140.0050.00317.64
8.1.130.0030.00318.00
8.1.120.0050.00217.78
8.1.110.0080.00017.67
8.1.100.0040.00417.78
8.1.90.0000.00717.65
8.1.80.0000.00717.73
8.1.70.0040.00417.74
8.1.60.0000.00817.87
8.1.50.0000.00917.76
8.1.40.0000.00917.83
8.1.30.0000.00817.89
8.1.20.0060.00317.95
8.1.10.0000.00817.93
8.1.00.0000.01117.78
8.0.300.0000.00718.77
8.0.290.0030.00517.00
8.0.280.0070.00018.62
8.0.270.0070.00017.43
8.0.260.0030.00317.08
8.0.250.0000.00717.23
8.0.240.0030.00617.21
8.0.230.0050.00217.30
8.0.220.0000.00717.09
8.0.210.0000.00817.13
8.0.200.0080.00017.20
8.0.190.0000.00917.24
8.0.180.0050.00317.15
8.0.170.0040.00417.30
8.0.160.0050.00317.22
8.0.150.0040.00417.21
8.0.140.0060.00617.09
8.0.130.0060.00013.65
8.0.120.0040.00417.22
8.0.110.0040.00417.27
8.0.100.0050.00317.10
8.0.90.0040.00417.30
8.0.80.0120.00317.31
8.0.70.0070.00017.16
8.0.60.0040.00417.28
8.0.50.0040.00417.15
8.0.30.0100.01017.49
8.0.20.0120.01617.52
8.0.10.0030.00517.38
8.0.00.0080.01017.13
7.4.330.0020.00216.99
7.4.320.0070.00016.79
7.4.300.0090.00016.71
7.4.290.0050.00316.89
7.4.280.0040.00416.89
7.4.270.0000.00816.71
7.4.260.0070.00016.87
7.4.250.0050.00216.61
7.4.240.0000.00716.78
7.4.230.0030.00516.80
7.4.220.0150.00616.95
7.4.210.0060.00816.90
7.4.200.0050.00316.82
7.4.190.0030.00316.99
7.4.160.0070.01016.75
7.4.150.0130.01017.40
7.4.140.0080.01017.86
7.4.130.0120.00716.72
7.4.120.0140.00516.68
7.4.110.0130.00616.62
7.4.100.0070.01716.68
7.4.90.0090.00916.88
7.4.80.0100.01019.39
7.4.70.0030.01316.83
7.4.60.0110.00717.03
7.4.50.0040.00416.76
7.4.40.0070.00722.77
7.4.30.0100.00716.95
7.4.00.0090.00914.85
7.3.330.0030.00313.45
7.3.320.0000.00513.39
7.3.310.0030.00616.69
7.3.300.0040.00416.51
7.3.290.0040.01116.63
7.3.280.0130.00616.71
7.3.270.0070.01317.40
7.3.260.0070.01118.24
7.3.250.0060.01216.64
7.3.240.0070.01416.93
7.3.230.0100.00716.83
7.3.210.0100.00716.62
7.3.200.0130.00519.39
7.3.190.0070.01016.80
7.3.180.0120.00916.89
7.3.170.0170.00016.70
7.3.160.0090.01216.70
7.3.120.0030.00914.98
7.2.330.0070.01116.91
7.2.320.0070.01817.07
7.2.310.0110.01317.06
7.2.300.0130.00517.05
7.2.290.0100.00716.73
7.2.60.0070.00717.11
7.2.00.0030.00619.59
7.1.200.0060.00315.83
7.1.100.0040.00717.99
7.1.70.0000.00917.24
7.1.60.0100.01019.17
7.1.50.0070.01416.84
7.1.00.0000.03722.54
7.0.200.0080.00016.64
7.0.140.0030.07322.14
7.0.100.0230.08020.21
7.0.90.0070.08719.99
7.0.80.0030.06320.04
7.0.70.0130.06720.02
7.0.60.0170.08020.09
7.0.50.0130.07720.45
7.0.40.0200.07020.17
7.0.30.0100.05320.13
7.0.20.0000.04720.07
7.0.10.0030.04720.13
7.0.00.0030.04320.14
5.6.280.0030.07321.16
5.6.250.0030.08720.85
5.6.240.0030.08320.78
5.6.230.0100.07320.56
5.6.220.0100.08020.72
5.6.210.0070.07020.76
5.6.200.0070.08721.13
5.6.190.0070.08721.11
5.6.180.0000.09021.19
5.6.170.0070.06021.09
5.6.160.0100.03721.20
5.6.150.0070.04021.02
5.6.140.0030.04321.08
5.6.130.0030.04021.15
5.6.120.0070.04021.18
5.6.110.0070.04021.09
5.6.100.0130.05721.00
5.6.90.0070.04021.10
5.6.80.0030.04320.56
5.6.70.0070.04320.48
5.6.60.0100.03720.49
5.6.50.0070.03720.43
5.6.40.0070.03720.54
5.6.30.0030.04020.45
5.6.20.0000.04320.42
5.6.10.0030.03320.43
5.6.00.0000.07020.45
5.5.380.0070.08020.63
5.5.370.0130.04020.56
5.5.360.0200.07320.57
5.5.350.0100.06720.56
5.5.340.0070.07020.89
5.5.330.0170.06720.98
5.5.320.0100.07720.98
5.5.310.0030.06720.86
5.5.300.0030.04720.91
5.5.290.0030.04020.94
5.5.280.0070.04321.00
5.5.270.0100.06020.96
5.5.260.0030.06720.76
5.5.250.0100.03320.77
5.5.240.0000.04020.39
5.5.230.0070.03320.33
5.5.220.0070.05020.28
5.5.210.0030.03720.39
5.5.200.0030.04020.17
5.5.190.0070.03720.35
5.5.180.0100.03320.18
5.5.160.0030.03720.29
5.5.150.0000.04320.34
5.5.140.0070.04320.29
5.5.130.0000.03720.34
5.5.120.0130.03020.34
5.5.110.0030.05320.34
5.5.100.0070.05720.10
5.5.90.0030.04020.15
5.5.80.0130.02720.18
5.5.70.0030.04020.20
5.5.60.0070.03720.13
5.5.50.0030.04020.23
5.5.40.0100.05720.20
5.5.30.0170.07020.25
5.5.20.0070.07320.19
5.5.10.0100.06720.20
5.5.00.0100.07320.18
5.4.450.0000.04319.43
5.4.440.0100.04719.45
5.4.430.0030.03719.44
5.4.420.0100.03019.44
5.4.410.0000.04019.33
5.4.400.0100.04719.20
5.4.390.0030.05319.02
5.4.380.0000.04019.17
5.4.370.0000.05319.12
5.4.360.0070.03319.19
5.4.350.0000.04019.30
5.4.340.0100.03318.90
5.4.320.0000.04019.16
5.4.310.0100.03019.26
5.4.300.0000.04319.27
5.4.290.0000.05719.14
5.4.280.0070.03319.27
5.4.270.0030.03319.12
5.4.260.0000.04019.10
5.4.250.0030.05019.10
5.4.240.0070.04019.09
5.4.230.0030.03718.91
5.4.220.0000.05019.11
5.4.210.0000.04319.21
5.4.200.0030.06319.16
5.4.190.0100.03019.12
5.4.180.0100.07319.09
5.4.170.0030.07318.90
5.4.160.0130.07019.00
5.4.150.0100.07319.10
5.4.140.0100.07016.25
5.4.130.0130.05716.49
5.4.120.0100.07016.50
5.4.110.0070.07716.56
5.4.100.0030.08016.57
5.4.90.0030.07316.46
5.4.80.0100.05016.38
5.4.70.0030.04016.45
5.4.60.0100.07016.43
5.4.50.0100.07016.40
5.4.40.0170.06316.37
5.4.30.0070.06716.44
5.4.20.0070.04016.53
5.4.10.0030.07316.34
5.4.00.0100.05715.84
5.3.290.0000.03714.76
5.3.280.0000.04014.71
5.3.270.0070.08014.63
5.3.260.0070.06714.72
5.3.250.0130.08014.69
5.3.240.0100.08014.68
5.3.230.0100.08014.70
5.3.220.0030.07314.59
5.3.210.0200.06314.66
5.3.200.0070.04014.67
5.3.190.0070.07714.66
5.3.180.0070.06314.66
5.3.170.0030.08014.58
5.3.160.0100.06314.65
5.3.150.0100.07314.68
5.3.140.0130.06714.68
5.3.130.0030.07714.52
5.3.120.0000.08014.65
5.3.110.0170.07014.66
5.3.100.0100.06714.10
5.3.90.0100.06314.04
5.3.80.0130.06713.89
5.3.70.0100.07013.88
5.3.60.0070.07314.11
5.3.50.0070.06313.93
5.3.40.0070.07714.04
5.3.30.0070.07014.02
5.3.20.0230.05313.57
5.3.10.0130.06313.77
5.3.00.0100.06313.74
5.2.170.0070.06011.23
5.2.160.0100.05711.07
5.2.150.0070.06311.25
5.2.140.0030.05711.20
5.2.130.0070.03311.12
5.2.120.0030.06011.22
5.2.110.0030.06311.13
5.2.100.0070.05711.12
5.2.90.0030.06711.28
5.2.80.0100.06011.19
5.2.70.0000.04711.18
5.2.60.0070.06311.14
5.2.50.0070.06011.04
5.2.40.0030.05711.15
5.2.30.0100.05311.00
5.2.20.0030.06011.11
5.2.10.0030.05711.03
5.2.00.0070.06010.94
5.1.60.0000.05710.23
5.1.50.0100.05010.17
5.1.40.0030.04710.15
5.1.30.0030.03310.54
5.1.20.0070.05310.46
5.1.10.0070.05310.25
5.1.00.0030.03710.25
5.0.50.0070.0439.96
5.0.40.0100.0379.96
5.0.30.0070.0639.96
5.0.20.0030.0309.96
5.0.10.0070.0409.96
5.0.00.0000.0709.96
4.4.90.0030.0379.96
4.4.80.0000.0379.96
4.4.70.0070.0379.96
4.4.60.0000.0379.96
4.4.50.0030.0179.96
4.4.40.0070.0539.96
4.4.30.0000.0339.96
4.4.20.0070.0339.96
4.4.10.0130.0239.96
4.4.00.0030.0439.96
4.3.110.0000.0379.96
4.3.100.0030.0339.96
4.3.90.0070.0339.96
4.3.80.0030.0539.96
4.3.70.0000.0379.96
4.3.60.0000.0379.96
4.3.50.0100.0139.96
4.3.40.0070.0479.96
4.3.30.0000.0379.96
4.3.20.0030.0379.96
4.3.10.0030.0339.96
4.3.00.0000.0379.96

preferences:
40 ms | 401 KiB | 5 Q