3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = 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.0150.00318.68
8.3.50.0090.01121.21
8.3.40.0150.00018.69
8.3.30.0070.00720.17
8.3.20.0080.00020.22
8.3.10.0040.00421.21
8.3.00.0080.00022.43
8.2.180.0130.00318.39
8.2.170.0160.00022.96
8.2.160.0070.00722.11
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0070.00020.75
8.2.110.0070.00319.33
8.2.100.0120.00017.91
8.2.90.0050.00319.17
8.2.80.0030.00518.04
8.2.70.0060.00317.50
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0030.00518.15
8.2.30.0030.00519.55
8.2.20.0040.00417.82
8.2.10.0030.00617.73
8.2.00.0060.00317.86
8.1.280.0130.00725.92
8.1.270.0090.00023.99
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0110.00021.03
8.1.220.0060.00318.77
8.1.210.0050.00320.88
8.1.200.0100.00017.35
8.1.190.0050.00317.66
8.1.180.0050.00318.10
8.1.170.0050.00318.68
8.1.160.0070.00018.93
8.1.150.0030.00518.74
8.1.140.0050.00317.56
8.1.130.0070.00017.80
8.1.120.0000.00717.51
8.1.110.0070.00017.54
8.1.100.0040.00417.50
8.1.90.0040.00417.54
8.1.80.0000.00717.50
8.1.70.0030.00317.46
8.1.60.0000.00817.59
8.1.50.0030.00517.59
8.1.40.0030.00617.61
8.1.30.0030.00617.68
8.1.20.0000.00817.59
8.1.10.0040.00417.64
8.1.00.0080.00017.61
8.0.300.0070.00320.04
8.0.290.0040.00417.43
8.0.280.0000.00818.41
8.0.270.0000.00717.44
8.0.260.0030.00316.88
8.0.250.0000.00717.05
8.0.240.0000.00917.11
8.0.230.0030.00517.00
8.0.220.0030.00317.00
8.0.210.0030.00317.10
8.0.200.0030.00317.06
8.0.190.0040.00417.04
8.0.180.0000.00716.99
8.0.170.0040.00417.02
8.0.160.0000.00817.01
8.0.150.0040.00416.91
8.0.140.0080.00316.94
8.0.130.0030.00313.50
8.0.120.0000.00716.98
8.0.110.0070.00017.01
8.0.100.0050.00216.91
8.0.90.0000.00716.92
8.0.80.0060.01017.09
8.0.70.0070.00016.86
8.0.60.0000.00717.06
8.0.50.0070.00016.85
8.0.30.0110.00717.38
8.0.20.0120.01217.40
8.0.10.0040.00417.27
8.0.00.0090.01016.70
7.4.330.0060.00017.41
7.4.320.0000.00817.26
7.4.300.0100.00017.45
7.4.290.0070.00217.23
7.4.280.0000.00917.36
7.4.270.0040.00417.15
7.4.260.0030.00314.04
7.4.250.0000.00817.07
7.4.240.0020.00617.21
7.4.230.0040.00417.28
7.4.220.0120.01217.14
7.4.210.0060.01016.99
7.4.200.0000.00817.30
7.4.190.0030.00617.57
7.4.160.0110.01117.10
7.4.150.0170.01017.40
7.4.140.0060.01617.86
7.4.130.0160.00817.13
7.4.120.0130.01017.32
7.4.110.0100.01317.18
7.4.100.0100.01916.92
7.4.90.0060.01617.22
7.4.80.0090.01819.39
7.4.70.0120.00816.97
7.4.60.0030.01917.03
7.4.50.0060.00317.38
7.4.40.0100.01022.77
7.4.30.0030.01817.27
7.3.330.0000.00714.00
7.3.320.0030.00314.00
7.3.310.0000.00817.04
7.3.300.0030.00617.13
7.3.290.0090.00916.98
7.3.280.0110.01216.96
7.3.270.0160.01717.40
7.3.260.0150.00918.24
7.3.250.0160.00617.00
7.3.240.0070.01417.31
7.3.230.0110.01117.20
7.3.210.0150.00617.18
7.3.200.0170.00319.39
7.3.190.0030.02417.02
7.3.180.0070.01417.00
7.3.170.0110.00917.02
7.3.160.0120.01216.90
7.2.330.0070.01717.25
7.2.320.0030.01917.25
7.2.310.0090.01517.05
7.2.300.0090.01417.12
7.2.290.0130.01317.16
7.2.100.0110.00815.09
7.2.90.0310.00415.48
7.2.80.0880.01015.34
7.2.70.1090.01315.45
7.2.60.0820.00315.68
7.2.50.0190.00915.55
7.2.40.0260.00915.59
7.2.30.0420.01415.66
7.2.20.0730.00915.40
7.2.10.0780.01015.43
7.2.00.1090.00315.44
7.1.220.0850.00714.52
7.1.210.0800.00814.59
7.1.200.0690.00714.26
7.1.190.0910.01314.57
7.1.180.0860.00614.42
7.1.170.0930.00314.43
7.1.160.0170.01314.30
7.1.150.0620.01014.69
7.1.140.0440.01114.49
7.1.130.0560.01214.49
7.1.120.0720.00614.71
7.1.110.0180.00814.34
7.1.100.0840.00614.46
7.1.90.0690.00414.44
7.1.80.0690.01014.29
7.1.70.0570.01914.48
7.1.60.0300.01832.43
7.1.50.0460.00932.36
7.1.40.0490.00632.59
7.1.30.0640.01232.32
7.1.20.0860.01932.49
7.1.10.1030.00914.32
7.1.00.0770.00314.14
7.0.310.1300.00713.80
7.0.300.1010.01214.18
7.0.290.0180.00814.29
7.0.280.1040.01014.01
7.0.270.0790.01314.15
7.0.260.0320.00614.29
7.0.250.0690.00713.99
7.0.240.0820.00314.13
7.0.230.1140.01014.07
7.0.220.0600.00914.16
7.0.210.0220.01114.16
7.0.200.0210.00613.86
7.0.190.0790.01314.21
7.0.180.0370.00614.23
7.0.170.0630.00714.13
7.0.160.0320.00014.07
7.0.150.0940.00313.89
7.0.140.0840.01214.08
7.0.130.0670.00914.22
7.0.120.0880.01214.21
7.0.110.0190.01214.09
7.0.100.0920.00713.92
7.0.90.0840.00613.92
7.0.80.0580.00914.16
7.0.70.0830.00313.83
7.0.60.0250.00513.95
7.0.50.0140.01114.19
7.0.40.0650.01014.21
7.0.30.1230.00613.88
7.0.20.0630.01314.31
7.0.10.0170.01013.98
7.0.00.0280.01014.18
5.6.380.0140.00615.29
5.6.370.0140.00715.08
5.6.360.0130.01315.18
5.6.350.0140.01114.90
5.6.340.0150.01014.80
5.6.330.0170.00515.00
5.6.320.0080.01314.54
5.6.310.0160.00714.91
5.6.300.0160.00814.35
5.6.290.0170.00715.13
5.6.280.0060.01914.89
5.6.270.0100.01014.58
5.6.260.0190.00614.66
5.6.250.0170.00615.12
5.6.240.0050.01614.72
5.6.230.0160.01015.08
5.6.220.0110.01014.70
5.6.210.0190.00915.00
5.6.200.0160.00814.99
5.6.190.0120.00914.93
5.6.180.0130.00515.11
5.6.170.0110.01414.57
5.6.160.0140.01214.84
5.6.150.0070.01114.70
5.6.140.0120.00915.07
5.6.130.0110.00714.76
5.6.120.0030.01114.89
5.6.110.0110.00814.88
5.6.100.0050.01314.63
5.6.90.0120.00315.03
5.6.80.0160.00414.67
5.6.70.0070.01414.80
5.6.60.0090.00915.03
5.6.50.0130.00814.76
5.6.40.0070.01314.49
5.6.30.0040.01215.05
5.6.20.0070.01014.52
5.6.10.0060.00914.52
5.6.00.0040.01514.59
5.5.380.0150.00613.43
5.5.370.0120.00813.43
5.5.360.0070.00813.43
5.5.350.0140.00613.43
5.5.340.0070.01113.43
5.5.330.0160.00013.43
5.5.320.0150.01113.43
5.5.310.0080.00813.43
5.5.300.0090.00413.43
5.5.290.0110.00413.43
5.5.280.0030.01013.43
5.5.270.0050.00813.43
5.5.260.0090.00613.43
5.5.250.0070.00513.43
5.5.240.0040.00813.43
5.5.230.0070.00713.43
5.5.220.0030.01313.43
5.5.210.0110.00513.43
5.5.200.0130.00313.43
5.5.190.0000.01513.43
5.5.180.0040.01113.43
5.5.170.0110.00814.74
5.5.160.0070.01013.43
5.5.150.0040.01213.43
5.5.140.0150.00413.43
5.5.130.0080.01313.43
5.4.450.0120.00413.43
5.4.440.0080.00813.43
5.4.430.0070.01013.43
5.4.420.0030.01213.43
5.4.410.0060.00913.43
5.4.400.0030.01013.43
5.4.390.0040.01113.43
5.4.380.0160.00013.43
5.4.370.0100.00513.43
5.4.360.0040.01213.43
5.4.350.0130.00013.43
5.4.340.0040.00813.43
5.4.330.0050.00513.43
5.4.320.0030.01213.43
5.4.310.0150.00513.43
5.4.300.0070.01313.43
5.3.290.0060.00313.43

preferences:
36.52 ms | 401 KiB | 5 Q