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.0140.00717.25
8.3.50.0090.00821.98
8.3.40.0080.00819.13
8.3.30.0040.01119.29
8.3.20.0050.00320.46
8.3.10.0040.00423.91
8.3.00.0080.00022.63
8.2.180.0090.00618.77
8.2.170.0090.00622.96
8.2.160.0070.01120.60
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0130.00726.16
8.2.120.0050.00220.01
8.2.110.0060.00320.80
8.2.100.0040.00818.03
8.2.90.0030.00619.59
8.2.80.0000.00818.00
8.2.70.0000.00918.00
8.2.60.0000.00818.18
8.2.50.0040.00918.07
8.2.40.0000.00819.70
8.2.30.0000.00718.39
8.2.20.0000.00818.05
8.2.10.0040.00417.97
8.2.00.0050.00317.99
8.1.280.0070.00725.92
8.1.270.0110.00724.04
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0070.00323.97
8.1.230.0090.00317.76
8.1.220.0040.00417.91
8.1.210.0050.00318.77
8.1.200.0100.00017.73
8.1.190.0050.00317.91
8.1.180.0040.00418.10
8.1.170.0040.00418.88
8.1.160.0060.00322.27
8.1.150.0040.00418.93
8.1.140.0040.00417.60
8.1.130.0040.00418.06
8.1.120.0070.00017.73
8.1.110.0090.00017.77
8.1.100.0070.00017.65
8.1.90.0050.00217.74
8.1.80.0030.00317.75
8.1.70.0070.00017.65
8.1.60.0040.00417.90
8.1.50.0050.00317.68
8.1.40.0000.00817.78
8.1.30.0030.00517.93
8.1.20.0030.00517.75
8.1.10.0000.00817.73
8.1.00.0040.00417.65
8.0.300.0040.00418.77
8.0.290.0070.00017.13
8.0.280.0070.00018.59
8.0.270.0070.00017.44
8.0.260.0070.00017.06
8.0.250.0000.00717.28
8.0.240.0000.00717.21
8.0.230.0000.00717.28
8.0.220.0030.00317.21
8.0.210.0040.00417.09
8.0.200.0030.00317.19
8.0.190.0000.00717.15
8.0.180.0070.00017.15
8.0.170.0040.00417.30
8.0.160.0050.00217.22
8.0.150.0070.00017.20
8.0.140.0050.00217.08
8.0.130.0060.00013.66
8.0.120.0000.00817.05
8.0.110.0000.00717.12
8.0.100.0050.00317.11
8.0.90.0030.00517.13
8.0.80.0110.01317.25
8.0.70.0050.00217.18
8.0.60.0040.00417.09
8.0.50.0040.00416.98
8.0.30.0090.01617.51
8.0.20.0060.01217.41
8.0.10.0040.00417.15
8.0.00.0100.01017.07
7.4.330.0000.00515.31
7.4.320.0060.00016.86
7.4.300.0060.00016.62
7.4.290.0000.00716.75
7.4.280.0000.00816.79
7.4.270.0040.00416.79
7.4.260.0050.00316.70
7.4.250.0040.00416.66
7.4.240.0030.00416.75
7.4.230.0000.00716.73
7.4.220.0100.01716.73
7.4.210.0060.00916.77
7.4.200.0030.00316.98
7.4.190.0030.00616.76
7.4.160.0120.00416.91
7.4.150.0090.01217.40
7.4.140.0100.00717.86
7.4.130.0100.01016.77
7.4.120.0090.01616.88
7.4.110.0130.00316.71
7.4.100.0090.00916.95
7.4.90.0150.00616.85
7.4.80.0070.01319.39
7.4.70.0100.00716.73
7.4.60.0170.00016.73
7.4.50.0050.00316.54
7.4.40.0060.01022.77
7.4.30.0070.01016.84
7.4.00.0100.00314.93
7.3.330.0050.00013.46
7.3.320.0050.00013.54
7.3.310.0000.00716.51
7.3.300.0000.00716.67
7.3.290.0120.00916.61
7.3.280.0100.00716.64
7.3.270.0060.01117.40
7.3.260.0170.00316.88
7.3.250.0070.01116.83
7.3.240.0060.01216.84
7.3.230.0100.00716.67
7.3.210.0100.00616.60
7.3.200.0040.01519.39
7.3.190.0110.00816.63
7.3.180.0120.00416.60
7.3.170.0120.00416.61
7.3.160.0100.00616.65
7.3.120.0060.01014.85
7.3.10.0040.01116.52
7.3.00.0060.00816.54
7.2.330.0080.00917.07
7.2.320.0030.01416.62
7.2.310.0100.01016.91
7.2.300.0030.01416.64
7.2.290.0080.00816.74
7.2.130.0070.00716.78
7.2.120.0080.00616.94
7.2.110.0070.00716.97
7.2.100.0070.00717.09
7.2.90.0080.00816.93
7.2.80.0070.01017.09
7.2.70.0060.01016.94
7.2.60.0020.01317.12
7.2.50.0050.00817.01
7.2.40.0080.00817.06
7.2.30.0070.00717.07
7.2.20.0060.00617.06
7.2.10.0020.01417.07
7.2.00.0050.00917.86
7.1.250.0080.00515.84
7.1.100.0030.00918.10
7.1.70.0070.00217.25
7.1.60.0180.00719.29
7.1.50.0160.00717.01
7.1.00.0070.07322.58
7.0.200.0000.00916.86
7.0.140.0030.07722.18
7.0.60.0100.07720.12
7.0.50.0030.05718.05
7.0.40.0100.05720.12
7.0.30.0200.04020.28
7.0.20.0200.04720.16
7.0.10.0300.08320.27
7.0.00.0030.04320.37
5.6.280.0100.06721.18
5.6.210.0130.07320.73
5.6.200.0070.06318.32
5.6.190.0130.07020.50
5.6.180.0100.04020.74
5.6.170.0200.04320.59
5.6.160.0130.03720.78
5.6.150.0070.07018.27
5.6.140.0070.06718.27
5.6.130.0000.09318.27
5.6.120.0030.09021.14
5.6.110.0070.09021.11
5.6.100.0030.05021.16
5.6.90.0100.04321.15
5.6.80.0100.06020.55
5.5.350.0100.07320.51
5.5.340.0130.07318.09
5.5.330.0100.03720.56
5.5.320.0070.04020.49
5.5.310.0230.04020.40
5.5.300.0200.07318.08
5.5.290.0030.04318.10
5.5.280.0100.08320.86
5.5.270.0070.08320.81
5.5.260.0100.08320.97
5.5.250.0030.06720.84
5.5.240.0100.06320.23
5.4.450.0030.04319.47
5.4.440.0170.07019.48
5.4.430.1400.06019.62
5.4.420.2130.04319.52
5.4.410.2030.04319.37
5.4.400.1900.04019.16
5.4.390.2030.03719.01
5.4.380.2300.03718.96
5.4.370.2030.04319.29
5.4.360.2170.04719.16
5.4.350.2030.03719.00
5.4.340.2070.05318.95
5.4.320.0300.04318.91
5.4.310.0230.06318.99
5.4.300.0200.04319.25
5.4.290.0230.07318.95
5.4.280.0230.05318.91
5.4.270.0270.07019.29
5.4.260.0200.06019.15
5.4.250.0200.04719.18
5.4.240.0170.04019.15
5.4.230.0170.03718.90
5.4.220.0330.06319.20
5.4.210.0300.06719.13
5.4.200.0230.07019.20
5.4.190.0300.06318.98
5.4.180.0200.03319.22
5.4.170.0170.03719.15
5.4.160.0170.05318.89
5.4.150.0170.03719.19
5.4.140.0170.03316.56
5.4.130.0170.03316.39
5.4.120.0300.04716.57
5.4.110.0230.06716.52
5.4.100.0170.03316.53
5.4.90.0130.03716.58
5.4.80.0230.02716.62
5.4.70.0200.03016.56
5.4.60.0230.03016.55
5.4.50.0200.06316.52
5.4.40.0170.04316.22
5.4.30.0200.07016.23
5.4.20.0170.03716.49
5.4.10.0130.05016.54
5.4.00.0300.06715.80
5.3.290.0200.04714.83
5.3.280.0230.04014.59
5.3.270.0200.04714.76
5.3.260.0300.06314.55
5.3.250.0200.05314.76
5.3.240.0270.07014.55
5.3.230.0100.04314.55
5.3.220.0230.06714.54
5.3.210.0200.03314.77
5.3.200.0230.07014.62
5.3.190.0270.04014.67
5.3.180.0200.06014.52
5.3.170.0230.03714.62
5.3.160.0230.04014.67
5.3.150.0170.04314.62
5.3.140.0300.06714.52
5.3.130.0170.07314.50
5.3.120.0230.07014.77
5.3.110.0230.04314.60
5.3.100.0100.04713.98
5.3.90.0170.07014.02
5.3.80.0200.08014.17
5.3.70.0230.03314.02
5.3.60.0230.06714.20
5.3.50.0170.04713.91
5.3.40.0070.04313.88
5.3.30.0200.03713.91
5.3.20.0230.05713.77
5.3.10.0170.04713.80
5.3.00.0300.06013.69
5.2.170.0130.03311.36
5.2.160.0200.05711.11
5.2.150.0170.05311.16
5.2.140.0170.02711.41
5.2.130.0170.03011.04
5.2.120.0170.02711.32
5.2.110.0130.03011.36
5.2.100.0170.03011.22
5.2.90.0200.02311.04
5.2.80.0130.03011.36
5.2.70.0130.03011.11
5.2.60.0130.03011.26
5.2.50.0230.02010.98
5.2.40.0130.05711.14
5.2.30.0170.03711.23
5.2.20.0200.05010.91
5.2.10.0170.02310.88
5.2.00.0070.03310.96
5.1.60.0100.02710.22
5.1.50.0130.02310.25
5.1.40.0100.02710.08
5.1.30.0130.02310.36
5.1.20.0100.03010.47
5.1.10.0100.02710.11
5.1.00.0130.02310.16
5.0.50.0100.0178.59
5.0.40.0070.0208.50
5.0.30.0070.0308.45
5.0.20.0070.0238.41
5.0.10.0070.0208.41
5.0.00.0030.0338.41
4.4.90.0070.0178.41
4.4.80.0070.0138.41
4.4.70.0100.0178.41
4.4.60.0130.0138.41
4.4.50.0270.0178.41
4.4.40.0070.0238.41
4.4.30.0070.0208.41
4.4.20.0070.0238.41
4.4.10.0130.0138.41
4.4.00.0070.0278.41
4.3.110.0100.0138.41
4.3.100.0070.0208.41
4.3.90.0070.0208.41
4.3.80.0130.0208.41
4.3.70.0070.0178.41
4.3.60.0130.0338.41
4.3.50.0070.0278.41
4.3.40.0100.0438.41
4.3.30.0030.0408.41
4.3.20.0100.0138.41
4.3.10.0070.0278.41
4.3.00.0070.0108.41

preferences:
45.44 ms | 401 KiB | 5 Q