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 * acos( cos( deg2rad($qryVal[0]) ) * cos( deg2rad( $value['tom_geo_latitude'] ) ) * cos( deg2rad( $value['tom_geo_longitude'] ) - deg2rad($qryVal[1]) ) + sin( deg2rad($qryVal[0]) ) * sin(deg2rad( $value['tom_geo_latitude'] ) ) ); $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.0100.01019.21
8.3.50.0110.00721.39
8.3.40.0060.00919.50
8.3.30.0070.00721.02
8.3.20.0040.00421.09
8.3.10.0000.00821.80
8.3.00.0000.00822.96
8.2.180.0110.01117.63
8.2.170.0140.00722.96
8.2.160.0080.00622.58
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0000.00821.30
8.2.110.0090.00019.93
8.2.100.0060.00618.41
8.2.90.0050.00319.84
8.2.80.0040.00418.25
8.2.70.0050.00318.12
8.2.60.0060.00318.43
8.2.50.0060.00318.25
8.2.40.0080.00018.78
8.2.30.0040.00420.19
8.2.20.0000.00818.38
8.2.10.0030.00618.31
8.2.00.0070.00418.30
8.1.280.0100.00725.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.01722.76
8.1.230.0060.00619.66
8.1.220.0080.00018.41
8.1.210.0040.00418.77
8.1.200.0050.00517.97
8.1.190.0090.00018.10
8.1.180.0050.00318.10
8.1.170.0040.00419.32
8.1.160.0000.00819.43
8.1.150.0040.00419.27
8.1.140.0080.00018.20
8.1.130.0000.00718.40
8.1.120.0040.00418.06
8.1.110.0040.00418.09
8.1.100.0020.00517.91
8.1.90.0040.00418.05
8.1.80.0030.00518.04
8.1.70.0040.00418.01
8.1.60.0040.00418.03
8.1.50.0020.00518.18
8.1.40.0040.00418.06
8.1.30.0040.00418.23
8.1.20.0000.00818.11
8.1.10.0050.00318.18
8.1.00.0040.00418.03
8.0.300.0000.00818.77
8.0.290.0000.00817.38
8.0.280.0020.00518.94
8.0.270.0000.00717.99
8.0.260.0070.00017.46
8.0.250.0050.00317.63
8.0.240.0060.00317.70
8.0.230.0000.00817.57
8.0.220.0040.00417.57
8.0.210.0000.00717.56
8.0.200.0030.00317.51
8.0.190.0040.00417.52
8.0.180.0060.00317.55
8.0.170.0000.00717.51
8.0.160.0050.00217.54
8.0.150.0080.00017.50
8.0.140.0060.00617.46
8.0.130.0000.00613.87
8.0.120.0000.00817.53
8.0.110.0040.00417.39
8.0.100.0080.00017.47
8.0.90.0040.00417.66
8.0.80.0070.01017.38
8.0.70.0000.00817.35
8.0.60.0070.00017.51
8.0.50.0080.00017.38
8.0.30.0060.01217.69
8.0.20.0140.00717.56
8.0.10.0000.00817.46
8.0.00.0100.00917.21
7.4.330.0000.00517.31
7.4.320.0030.00317.07
7.4.300.0000.00817.08
7.4.290.0040.00417.19
7.4.280.0000.00717.20
7.4.270.0000.00717.22
7.4.260.0030.00313.87
7.4.250.0000.00917.23
7.4.240.0040.00417.27
7.4.230.0040.00417.27
7.4.220.0140.01417.02
7.4.210.0080.00716.93
7.4.200.0040.00417.26
7.4.190.0000.00717.32
7.4.160.0100.00717.11
7.4.150.0100.01017.40
7.4.140.0140.01317.86
7.4.130.0080.01117.00
7.4.120.0080.01316.92
7.4.110.0120.00616.78
7.4.100.0030.01516.93
7.4.90.0000.01816.88
7.4.80.0070.01519.39
7.4.70.0110.00616.93
7.4.60.0100.00716.98
7.4.50.0060.00316.93
7.4.40.0080.00822.77
7.4.30.0060.01216.95
7.4.10.0090.01215.49
7.4.00.0050.01115.37
7.3.330.0030.00313.89
7.3.320.0060.00013.84
7.3.310.0000.00816.91
7.3.300.0000.00816.85
7.3.290.0070.01016.87
7.3.280.0080.01016.82
7.3.270.0070.01317.40
7.3.260.0150.00618.24
7.3.250.0130.00816.93
7.3.240.0060.01216.95
7.3.230.0090.00916.80
7.3.210.0090.00916.88
7.3.200.0100.01019.39
7.3.190.0070.01317.07
7.3.180.0130.00316.83
7.3.170.0030.01416.95
7.3.160.0130.00416.80
7.3.130.0120.00315.33
7.3.120.0030.01315.33
7.3.110.0120.00615.12
7.3.100.0040.01115.05
7.3.90.0040.00815.05
7.3.80.0070.00714.98
7.3.70.0070.00715.18
7.3.60.0040.01115.32
7.3.50.0080.00415.26
7.3.40.0030.01314.98
7.3.30.0030.01015.32
7.3.20.0140.00017.28
7.3.10.0030.01216.96
7.3.00.0040.01116.80
7.2.330.0030.01617.08
7.2.320.0100.01317.04
7.2.310.0100.01316.95
7.2.300.0070.01016.84
7.2.290.0120.00417.02
7.2.260.0060.01215.68
7.2.250.0100.00915.50
7.2.240.0040.01115.68
7.2.230.0080.00615.26
7.2.220.0000.01015.39
7.2.210.0070.00715.72
7.2.200.0090.00615.65
7.2.190.0090.00015.32
7.2.180.0060.00915.35
7.2.170.0100.00015.64
7.2.160.0120.00015.50
7.2.150.0100.00717.36
7.2.140.0080.00817.38
7.2.130.0000.01017.10
7.2.120.0000.01417.08
7.2.110.0120.00317.29
7.2.100.0060.00917.04
7.2.90.0070.00317.24
7.2.80.0060.01017.43
7.2.70.0090.00917.68
7.2.60.0090.00917.17
7.2.50.0070.01017.44
7.2.40.0070.00717.07
7.2.30.0060.00317.21
7.2.20.0120.00417.23
7.2.10.0140.00317.23
7.2.00.0050.01018.59
7.1.330.0070.00716.32
7.1.320.0100.00316.16
7.1.310.0040.00816.11
7.1.300.0060.01116.30
7.1.290.0060.00916.18
7.1.280.0100.00316.23
7.1.270.0030.00716.19
7.1.260.0090.00615.86
7.1.250.0030.01016.19
7.1.240.0090.00315.92
7.1.230.0030.01216.14
7.1.220.0000.00815.96
7.1.210.0070.00716.40
7.1.200.0030.01016.31
7.1.190.0080.00616.35
7.1.180.0040.01116.29
7.1.170.0060.01016.10
7.1.160.0110.00416.04
7.1.150.0040.01116.27
7.1.140.0060.00916.26
7.1.130.0090.00916.26
7.1.120.0030.00616.26
7.1.110.0070.00716.15
7.1.100.0000.01017.28
7.1.90.0030.01315.93
7.1.80.0040.01216.35
7.1.70.0090.00417.01
7.1.60.0120.00817.61
7.1.50.0100.00616.69
7.1.40.0060.00916.29
7.1.30.0110.00415.84
7.1.20.0070.00716.10
7.1.10.0060.00616.22
7.1.00.0020.02519.40
7.0.330.0030.00615.74
7.0.320.0060.00916.05
7.0.310.0030.01016.04
7.0.300.0070.00715.55
7.0.290.0070.00715.70
7.0.280.0000.01116.02
7.0.270.0000.00815.79
7.0.260.0070.00715.88
7.0.250.0030.00716.12
7.0.240.0060.01015.52
7.0.230.0040.01115.83
7.0.220.0040.01115.85
7.0.210.0080.00415.65
7.0.200.0020.00916.30
7.0.190.0070.00716.02
7.0.180.0060.00615.50
7.0.170.0100.00715.66
7.0.160.0110.00315.86
7.0.150.0000.01215.91
7.0.140.0070.03719.04
7.0.130.0090.00616.03
7.0.120.0070.00715.87
7.0.110.0070.00415.89
7.0.100.0030.01015.96
7.0.90.0060.00915.93
7.0.80.0000.01015.50
7.0.70.0030.01015.93
7.0.60.0090.04317.97
7.0.50.0050.02317.07
7.0.40.0050.02617.04
7.0.30.0240.03617.01
7.0.20.0150.02817.04
7.0.10.0120.04317.09
7.0.00.0110.04416.94
5.6.400.0070.00714.85
5.6.390.0030.01314.93
5.6.380.0040.01114.69
5.6.370.0030.00714.55
5.6.360.0030.01014.23
5.6.350.0000.01514.46
5.6.340.0070.00314.74
5.6.330.0040.00814.67
5.6.320.0030.01015.34
5.6.310.0060.00614.66
5.6.300.0100.00015.11
5.6.290.0030.00514.78
5.6.280.0080.03618.28
5.6.270.0030.01214.46
5.6.260.0030.00814.80
5.6.250.0000.00914.52
5.6.240.0080.00814.95
5.6.230.0040.01114.85
5.6.220.0070.01014.66
5.6.210.0080.04117.73
5.6.200.0050.04916.78
5.6.190.0020.03017.82
5.6.180.0170.03717.67
5.6.170.0220.03517.67
5.6.160.0070.04917.67
5.6.150.0060.03516.46
5.6.140.0100.04316.71
5.6.130.0030.04916.56
5.6.120.0050.02518.06
5.6.110.0120.03818.24
5.6.100.0080.04518.12
5.6.90.0050.04518.12
5.6.80.0100.04017.69
5.6.70.0100.00714.73
5.6.60.0000.01314.55
5.6.50.0060.00914.85
5.6.40.0040.01115.09
5.6.30.0060.00914.50
5.6.20.0000.00914.55
5.6.10.0110.00314.69
5.6.00.0100.00714.89
5.5.380.0030.01314.65
5.5.370.0000.01014.64
5.5.360.0030.01314.35
5.5.350.0020.02017.66
5.5.340.0060.04316.44
5.5.330.0070.02717.80
5.5.320.1120.02517.70
5.5.310.0190.04117.60
5.5.300.0020.05016.66
5.5.290.0050.03116.45
5.5.280.0080.03517.89
5.5.270.0020.02717.97
5.5.260.0070.03318.04
5.5.250.0070.04017.86
5.5.240.0050.03817.50
5.5.230.0000.01114.75
5.5.220.0110.00014.46
5.5.210.0030.01014.65
5.5.200.0000.01214.70
5.5.190.0110.00414.25
5.5.180.0060.00914.74
5.5.170.0040.01114.76
5.5.160.0000.01014.79
5.5.150.0070.00714.77
5.5.140.0040.00914.71
5.5.130.0090.00914.81
5.5.120.0140.00314.47
5.5.110.0130.00614.63
5.5.100.0030.01314.29
5.5.90.0030.00914.49
5.5.80.0080.00614.54
5.5.70.0000.01014.77
5.5.60.0030.01014.70
5.5.50.0090.00914.57
5.5.40.0000.01214.82
5.5.30.0100.00314.70
5.5.20.0040.01214.63
5.5.10.0090.00314.15
5.5.00.0060.00614.71
5.4.450.0130.04215.42
5.4.440.0160.04015.55
5.4.430.0160.03615.46
5.4.420.0220.03215.46
5.4.410.0150.02215.39
5.4.400.0130.02315.12
5.4.390.0150.02015.48
5.4.380.0120.02515.34
5.4.370.0120.02315.28
5.4.360.0160.02515.18
5.4.350.0100.02515.45
5.4.340.0100.02515.41
5.4.330.0000.01211.45
5.4.320.0170.02215.31
5.4.310.0130.02115.16
5.4.300.0130.03315.40
5.4.290.0100.02815.21
5.4.280.0170.02015.36
5.4.270.0150.03315.38
5.4.260.0150.02215.32
5.4.250.0140.02015.21
5.4.240.0120.02315.10
5.4.230.0150.04215.26
5.4.220.0110.02415.41
5.4.210.0170.01715.37
5.4.200.0100.02315.19
5.4.190.0110.02515.18
5.4.180.0130.02115.18
5.4.170.0130.02515.30
5.4.160.0120.02815.19
5.4.150.0130.02215.22
5.4.140.0100.02414.04
5.4.130.0130.02013.85
5.4.120.0110.02014.10
5.4.110.0160.01813.92
5.4.100.0100.02213.89
5.4.90.0100.02614.10
5.4.80.0120.02214.01
5.4.70.0130.02013.81
5.4.60.0150.01914.08
5.4.50.0210.01813.80
5.4.40.0170.02513.90
5.4.30.0100.02713.98
5.4.20.0130.03013.78
5.4.10.0130.02013.83
5.4.00.0120.02013.78
5.3.290.0120.02112.72
5.3.280.0090.02312.75
5.3.270.0160.01512.78
5.3.260.0160.03112.71
5.3.250.0190.02312.88
5.3.240.0140.01812.61
5.3.230.0140.01812.73
5.3.220.0130.02112.71
5.3.210.0140.02312.82
5.3.200.0120.02112.66
5.3.190.0120.02012.91
5.3.180.0110.02212.92
5.3.170.0130.02312.88
5.3.160.0150.03812.77
5.3.150.0120.02712.80
5.3.140.0100.02512.78
5.3.130.0160.02812.71
5.3.120.0150.03812.69
5.3.110.0130.02012.73
5.3.100.0150.03712.64
5.3.90.0120.02412.49
5.3.80.0130.03312.49
5.3.70.0080.03312.44
5.3.60.0130.03012.47
5.3.50.0100.02412.42
5.3.40.0100.02412.46
5.3.30.0130.02912.44
5.3.20.0130.02512.26
5.3.10.0120.02812.20
5.3.00.0080.03212.15
5.2.170.0270.04311.31
5.2.160.0100.03711.28
5.2.150.0230.02311.35
5.2.140.0230.06011.39
5.2.130.0170.06011.45
5.2.120.0170.03311.27
5.2.110.0230.05711.44
5.2.100.0170.03011.43
5.2.90.0170.03011.41
5.2.80.0230.06011.29
5.2.70.0270.05011.30
5.2.60.0170.03711.29
5.2.50.0370.04311.21
5.2.40.0130.03011.35
5.2.30.0100.03711.16
5.2.20.0070.03311.15
5.2.10.0100.03311.19
5.2.00.0130.02711.08
5.1.60.0100.03010.24
5.1.50.0130.03710.28
5.1.40.0070.02710.27
5.1.30.0100.02710.70
5.1.20.0100.02710.67
5.1.10.0100.02710.33
5.1.00.0130.02310.30
5.0.50.0070.0208.89
5.0.40.0030.0208.74
5.0.30.0030.0338.47
5.0.20.0000.0238.61
5.0.10.0070.0178.63
5.0.00.0000.0378.38
4.4.90.0070.0177.23
4.4.80.0030.0177.23
4.4.70.0070.0137.23
4.4.60.0030.0237.23
4.4.50.0030.0207.23
4.4.40.0070.0237.23
4.4.30.0100.0107.23
4.4.20.0070.0137.23
4.4.10.0030.0207.23
4.4.00.0030.0277.23
4.3.110.0000.0177.23
4.3.100.0000.0177.23
4.3.90.0000.0177.23
4.3.80.0100.0207.23
4.3.70.0070.0137.23
4.3.60.0070.0137.23
4.3.50.0030.0177.23
4.3.40.0030.0307.23
4.3.30.0000.0177.23
4.3.20.0000.0207.23
4.3.10.0000.0177.23
4.3.00.0030.0177.23

preferences:
53.47 ms | 401 KiB | 5 Q