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.0120.00918.68
8.3.50.0070.00822.05
8.3.40.0140.00719.14
8.3.30.0090.00519.22
8.3.20.0060.00320.60
8.3.10.0040.00422.17
8.3.00.0060.00322.70
8.2.180.0110.00717.00
8.2.170.0090.00922.96
8.2.160.0110.00421.09
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0090.00019.60
8.2.110.0110.00021.18
8.2.100.0090.00318.15
8.2.90.0000.00819.30
8.2.80.0060.00318.00
8.2.70.0080.00017.88
8.2.60.0040.00418.17
8.2.50.0030.00518.10
8.2.40.0040.00420.66
8.2.30.0040.00418.35
8.2.20.0000.00818.01
8.2.10.0040.00418.01
8.2.00.0030.00617.94
8.1.280.0040.01425.92
8.1.270.0000.00822.19
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0110.01122.27
8.1.230.0040.00718.07
8.1.220.0050.00317.90
8.1.210.0080.00018.77
8.1.200.0070.00317.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0050.00322.36
8.1.150.0000.00818.95
8.1.140.0040.00417.59
8.1.130.0000.00717.97
8.1.120.0040.00417.59
8.1.110.0000.00817.61
8.1.100.0000.00817.64
8.1.90.0000.00717.53
8.1.80.0070.00017.59
8.1.70.0050.00217.68
8.1.60.0030.00617.82
8.1.50.0050.00317.76
8.1.40.0040.00417.74
8.1.30.0040.00417.76
8.1.20.0060.00317.85
8.1.10.0040.00417.81
8.1.00.0000.00817.77
8.0.300.0000.01018.77
8.0.290.0040.00416.85
8.0.280.0070.00018.72
8.0.270.0000.00717.58
8.0.260.0070.00017.09
8.0.250.0000.00717.12
8.0.240.0040.00417.10
8.0.230.0070.00317.14
8.0.220.0030.00317.07
8.0.210.0000.00717.08
8.0.200.0030.00317.25
8.0.190.0040.00417.21
8.0.180.0000.00817.14
8.0.170.0020.00517.23
8.0.160.0000.00717.23
8.0.150.0040.00417.07
8.0.140.0020.00517.02
8.0.130.0000.00513.62
8.0.120.0030.00517.16
8.0.110.0000.00717.02
8.0.100.0070.00017.21
8.0.90.0080.00017.08
8.0.80.0000.01517.15
8.0.70.0040.00417.23
8.0.60.0000.00717.29
8.0.50.0000.00817.20
8.0.30.0110.00817.47
8.0.20.0110.00717.42
8.0.10.0040.00417.33
8.0.00.0070.01117.00
7.4.330.0000.00615.29
7.4.320.0030.00316.73
7.4.300.0000.00616.61
7.4.290.0000.00816.72
7.4.280.0000.00816.79
7.4.270.0030.00316.76
7.4.260.0000.01016.67
7.4.250.0040.00416.60
7.4.240.0040.00416.75
7.4.230.0070.00016.54
7.4.220.0130.00416.84
7.4.210.0080.00716.82
7.4.200.0040.00416.84
7.4.190.0070.00016.81
7.4.160.0190.00416.81
7.4.150.0120.00617.40
7.4.140.0130.00817.86
7.4.130.0060.01116.75
7.4.120.0090.00916.79
7.4.110.0060.01216.77
7.4.100.0110.01416.71
7.4.90.0030.01316.77
7.4.80.0060.01719.39
7.4.70.0120.00616.77
7.4.60.0130.00316.74
7.4.50.0000.00716.44
7.4.40.0000.01322.77
7.4.30.0140.00316.86
7.4.10.0080.00615.14
7.4.00.0060.01315.09
7.3.330.0000.00613.47
7.3.320.0050.00013.41
7.3.310.0060.00316.61
7.3.300.0040.00416.49
7.3.290.0090.00916.64
7.3.280.0040.01216.62
7.3.270.0160.00317.40
7.3.260.0100.01316.87
7.3.250.0120.00716.65
7.3.240.0150.01016.48
7.3.230.0100.00716.70
7.3.210.0090.00916.77
7.3.200.0140.00319.39
7.3.190.0030.01516.65
7.3.180.0070.01016.61
7.3.170.0150.00616.84
7.3.160.0160.00016.74
7.3.130.0130.00514.99
7.3.120.0080.00814.97
7.3.110.0080.00914.88
7.3.100.0050.01115.02
7.3.90.0060.00814.94
7.3.80.0070.00815.07
7.3.70.0060.00814.90
7.3.60.0060.00514.97
7.3.50.0060.00814.89
7.3.40.0020.01014.92
7.3.30.0080.00714.87
7.3.20.0050.00916.88
7.3.10.0020.01316.81
7.3.00.0080.00616.78
7.2.330.0060.01216.67
7.2.320.0100.00716.60
7.2.310.0100.00616.83
7.2.300.0130.00316.89
7.2.290.0030.01316.96
7.2.260.0080.01115.29
7.2.250.0060.00915.32
7.2.240.0050.01015.30
7.2.230.0040.01215.32
7.2.220.0090.00715.15
7.2.210.0100.00515.09
7.2.200.0040.00915.24
7.2.190.0090.00615.01
7.2.180.0040.00915.11
7.2.170.0050.01115.29
7.2.160.0070.01015.35
7.2.150.0050.00917.00
7.2.140.0040.01116.92
7.2.130.0070.00616.90
7.2.120.0060.00717.00
7.2.110.0030.01016.82
7.2.100.0060.00716.90
7.2.90.0060.00916.99
7.2.80.0060.01016.99
7.2.70.0080.00616.97
7.2.60.0080.00716.97
7.2.50.0060.00816.87
7.2.40.0050.01117.12
7.2.30.0060.00817.00
7.2.20.0070.00916.99
7.2.10.0070.00816.98
7.2.00.0010.01117.60
7.1.330.0030.01215.96
7.1.320.0060.01015.81
7.1.310.0060.00615.85
7.1.300.0050.00815.89
7.1.290.0030.00615.82
7.1.280.0060.00715.92
7.1.270.0050.01015.83
7.1.260.0060.00715.65
7.1.250.0050.00815.80
7.1.240.0080.00815.78
7.1.230.0060.00515.86
7.1.220.0050.00615.83
7.1.210.0080.00415.72
7.1.200.0030.00815.83
7.1.190.0090.00515.81
7.1.180.0070.00515.86
7.1.170.0070.00515.85
7.1.160.0040.00915.84
7.1.150.0060.00615.97
7.1.140.0060.00715.81
7.1.130.0030.00815.82
7.1.120.0080.00515.89
7.1.110.0040.00815.93
7.1.100.0070.00516.42
7.1.90.0060.00715.89
7.1.80.0060.00815.86
7.1.70.0050.00616.24
7.1.60.0100.00716.53
7.1.50.0080.00716.01
7.1.40.0070.00615.84
7.1.30.0060.00715.77
7.1.20.0060.00715.74
7.1.10.0050.00715.82
7.1.00.0060.02217.06
7.0.330.0050.00715.31
7.0.320.0050.00615.50
7.0.310.0070.00715.50
7.0.300.0040.00815.44
7.0.290.0030.01115.40
7.0.280.0050.00715.40
7.0.270.0070.00815.43
7.0.260.0060.00715.37
7.0.250.0080.00615.36
7.0.240.0070.00615.36
7.0.230.0040.00815.35
7.0.220.0070.00815.51
7.0.210.0040.00615.43
7.0.200.0030.00815.73
7.0.190.0050.01015.51
7.0.180.0070.00615.60
7.0.170.0030.00915.55
7.0.160.0070.00615.39
7.0.150.0060.00715.53
7.0.140.0070.01816.86
7.0.130.0060.00615.43
7.0.120.0060.00715.47
7.0.110.0070.00615.37
7.0.100.0080.00515.44
7.0.90.0060.00715.39
7.0.80.0060.00715.38
7.0.70.0060.02116.58
7.0.60.0050.01916.63
7.0.50.0050.01416.81
7.0.40.0050.01714.86
7.0.30.0050.01914.80
7.0.20.0040.02214.85
7.0.10.0050.02014.78
7.0.00.0050.01914.81
5.6.400.0040.00914.61
5.6.390.0070.00714.39
5.6.380.0040.00914.52
5.6.370.0070.00714.70
5.6.360.0050.00814.55
5.6.350.0040.00814.47
5.6.340.0040.00914.75
5.6.330.0060.00614.46
5.6.320.0090.00414.68
5.6.310.0040.00714.56
5.6.300.0040.00914.62
5.6.290.0080.00714.58
5.6.280.0090.01615.88
5.6.270.0050.00714.45
5.6.260.0040.01014.64
5.6.250.0070.00614.56
5.6.240.0050.00814.59
5.6.230.0100.00614.52
5.6.220.0030.02215.80
5.6.210.0050.02315.80
5.6.200.0040.01415.81
5.6.190.0040.02315.88
5.6.180.0070.02115.89
5.6.170.0070.02115.84
5.6.160.0060.02015.81
5.6.150.0060.01715.77
5.6.140.0070.01715.82
5.6.130.0040.01615.80
5.6.120.0050.01415.82
5.6.110.0030.01415.90
5.6.100.0060.01815.77
5.6.90.0080.01415.76
5.6.80.0020.02415.68
5.6.70.0030.02515.62
5.6.60.0070.01815.64
5.6.50.0050.01815.62
5.6.40.0070.02115.63
5.6.30.0050.01715.64
5.6.20.0030.02515.64
5.6.10.0080.01915.67
5.6.00.0080.01815.76
5.5.380.0030.00813.76
5.5.370.0070.00613.59
5.5.360.0050.02115.02
5.5.350.0060.01915.01
5.5.340.0030.02115.10
5.5.330.0050.01815.15
5.5.320.0040.02014.93
5.5.310.0050.02215.19
5.5.300.0030.02515.16
5.5.290.0030.02214.94
5.5.280.0060.01715.25
5.5.270.0050.02315.11
5.5.260.0070.02215.01
5.5.250.0040.02414.81
5.5.240.0050.02014.96
5.5.230.0040.02214.81
5.5.220.0070.02114.97
5.5.210.0050.02114.85
5.5.200.0060.02114.92
5.5.190.0060.02014.89
5.5.180.0030.02014.90
5.5.170.0070.00713.58
5.5.160.0060.02214.97
5.5.150.0060.01414.85
5.5.140.0050.02014.95
5.5.130.0060.01314.90
5.5.120.0040.01514.96
5.5.110.0030.02314.91
5.5.100.0060.02214.83
5.5.90.0070.01914.85
5.5.80.0070.02114.89
5.5.70.0050.02214.91
5.5.60.0050.02014.88
5.5.50.0080.01914.83
5.5.40.0060.01914.93
5.5.30.0020.02114.90
5.5.20.0030.02214.84
5.5.10.0040.01814.82
5.5.00.0070.02014.93
5.4.450.0050.01213.15
5.4.440.0050.01313.15
5.4.430.0050.01713.14
5.4.420.0040.01613.13
5.4.410.0050.02113.21
5.4.400.0040.02113.12
5.4.390.0050.02113.09
5.4.380.0040.01513.08
5.4.370.0040.02112.97
5.4.360.0050.01713.09
5.4.350.0050.01613.05
5.4.340.0070.01713.12
5.4.330.0070.00311.42
5.4.320.0020.01812.99
5.4.310.0040.02012.94
5.4.300.0080.01813.04
5.4.290.0040.01913.04
5.4.280.0070.01613.04
5.4.270.0070.01813.14
5.4.260.0040.02213.08
5.4.250.0050.01413.10
5.4.240.0060.01613.14
5.4.230.0060.01513.01
5.4.220.0060.02013.11
5.4.210.0070.01712.99
5.4.200.0040.02013.04
5.4.190.0070.01912.97
5.4.180.0060.01712.99
5.4.170.0040.02113.02
5.4.160.0050.02113.03
5.4.150.0070.01912.93
5.4.140.0040.02012.48
5.4.130.0040.02112.41
5.4.120.0040.01612.53
5.4.110.0030.01412.46
5.4.100.0060.01812.54
5.4.90.0040.01512.55
5.4.80.0080.01012.57
5.4.70.0040.02112.44
5.4.60.0020.01912.50
5.4.50.0060.01812.45
5.4.40.0040.01912.45
5.4.30.0050.01612.44
5.4.20.0030.02212.40
5.4.10.0060.01812.50
5.4.00.0040.01912.37
5.3.290.0040.01811.93
5.3.280.0040.02011.91
5.3.270.0060.01911.86
5.3.260.0040.02011.96
5.3.250.0030.01911.90
5.3.240.0040.01911.82
5.3.230.0030.01711.88
5.3.220.0040.01911.89
5.3.210.0040.01411.93
5.3.200.0050.01211.88
5.3.190.0050.01511.91
5.3.180.0060.01212.01
5.3.170.0050.02111.96
5.3.160.0040.01912.00
5.3.150.0030.02012.00
5.3.140.0050.01511.98
5.3.130.0030.02011.93
5.3.120.0030.02011.90
5.3.110.0030.02211.89
5.3.100.0040.01811.84
5.3.90.0030.02011.79
5.3.80.0050.01711.76
5.3.70.0050.01411.74
5.3.60.0040.01711.80
5.3.50.0020.01211.85
5.3.40.0030.01811.80
5.3.30.0050.01711.74
5.3.20.0040.01611.70
5.3.10.0030.02011.63
5.3.00.0060.01411.60
5.2.170.0010.03611.34
5.2.160.0040.03011.34
5.2.150.0030.03511.34
5.2.140.0020.03411.34
5.2.130.0040.03411.34
5.2.120.0020.03411.34
5.2.110.0050.03311.34
5.2.100.0030.03611.34
5.2.90.0020.02711.34
5.2.80.0060.03111.34
5.2.70.0070.03011.34
5.2.60.0050.02011.34
5.2.50.0060.03311.34
5.2.40.0040.03011.34
5.2.30.0030.03611.34
5.2.20.0040.03411.34
5.2.10.0020.02711.34
5.2.00.0060.02011.34
5.1.60.0050.03011.34
5.1.50.0040.02911.34
5.1.40.0050.03011.34
5.1.30.0050.02811.34
5.1.20.0030.03211.34
5.1.10.0070.02711.34
5.1.00.0020.03511.34
5.0.50.0090.01511.34
5.0.40.0020.02811.34
5.0.30.0020.02711.34
5.0.20.0030.02311.34
5.0.10.0080.02011.34
5.0.00.0030.03311.34
4.4.90.0010.01311.34
4.4.80.0030.00911.34
4.4.70.0000.01711.34
4.4.60.0030.01211.34
4.4.50.0010.01511.34
4.4.40.0000.03211.34
4.4.30.0030.01511.34
4.4.20.0040.01811.34
4.4.10.0030.02011.34
4.4.00.0040.02211.34
4.3.110.0010.01511.34
4.3.100.0010.01411.34
4.3.90.0020.01911.34
4.3.80.0000.03211.34
4.3.70.0010.01011.34
4.3.60.0020.01111.34
4.3.50.0000.01211.34
4.3.40.0020.03011.34
4.3.30.0030.01811.34
4.3.20.0050.01911.34
4.3.10.0020.01811.34
4.3.00.0000.01811.34

preferences:
40.9 ms | 401 KiB | 5 Q