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); $this->getResponse()->setHeader('Content-Type','text/xml','utf8'); 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.70.0070.01016.58
8.3.60.0160.00318.68
8.3.50.0150.00521.14
8.3.40.0090.00618.84
8.3.30.0100.00320.16
8.3.20.0040.00420.32
8.3.10.0040.00421.05
8.3.00.0000.00722.27
8.2.180.0140.00718.29
8.2.170.0070.00722.96
8.2.160.0030.01022.25
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00020.75
8.2.110.0090.00019.30
8.2.100.0110.00017.72
8.2.90.0040.00419.17
8.2.80.0000.00818.03
8.2.70.0040.00417.50
8.2.60.0030.00617.68
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0070.00019.62
8.2.20.0030.00517.66
8.2.10.0040.00417.73
8.2.00.0060.00317.70
8.1.280.0120.00425.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00323.84
8.1.230.0040.00820.89
8.1.220.0000.00918.77
8.1.210.0030.00620.72
8.1.200.0040.00417.25
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0000.00818.56
8.1.160.0000.00718.87
8.1.150.0050.00318.59
8.1.140.0040.00417.55
8.1.130.0050.00217.98
8.1.120.0070.00017.42
8.1.110.0040.00417.43
8.1.100.0050.00217.49
8.1.90.0050.00217.44
8.1.80.0040.00417.47
8.1.70.0070.00017.44
8.1.60.0080.00017.57
8.1.50.0000.00817.56
8.1.40.0030.00617.55
8.1.30.0020.00517.62
8.1.20.0040.00417.75
8.1.10.0080.00017.68
8.1.00.0050.00317.52
8.0.300.0070.00419.90
8.0.290.0040.00417.05
8.0.280.0080.00018.48
8.0.270.0030.00317.34
8.0.260.0000.00816.79
8.0.250.0030.00316.95
8.0.240.0090.00016.97
8.0.230.0030.00316.98
8.0.220.0070.00016.92
8.0.210.0070.00016.95
8.0.200.0070.00017.04
8.0.190.0030.00617.03
8.0.180.0000.00816.93
8.0.170.0000.00716.99
8.0.160.0040.00416.90
8.0.150.0000.00816.80
8.0.140.0030.01016.93
8.0.130.0030.00313.40
8.0.120.0000.00816.91
8.0.110.0040.00316.96
8.0.100.0000.00716.74
8.0.90.0040.00416.91
8.0.80.0070.00716.90
8.0.70.0040.00416.91
8.0.60.0000.00717.00
8.0.50.0040.00416.77
8.0.30.0060.01317.15
8.0.20.0110.01117.43
8.0.10.0000.00716.87
8.0.00.0090.00916.90
7.4.330.0000.00516.83
7.4.320.0030.00316.50
7.4.300.0030.00716.67
7.4.290.0070.00016.74
7.4.280.0030.00316.70
7.4.270.0020.00516.55
7.4.260.0040.00413.30
7.4.250.0040.00416.56
7.4.240.0030.00316.59
7.4.230.0000.00716.75
7.4.220.0100.01016.52
7.4.210.0090.00616.58
7.4.200.0030.00316.75
7.4.190.0000.00716.77
7.4.160.0120.00416.71
7.4.150.0140.00317.40
7.4.140.0070.01117.86
7.4.130.0070.01216.58
7.4.120.0110.00616.70
7.4.110.0130.01016.71
7.4.100.0090.00916.48
7.4.90.0090.00916.49
7.4.80.0030.01319.39
7.4.70.0040.01416.66
7.4.60.0070.01016.43
7.4.50.0060.00316.39
7.4.40.0070.00722.77
7.4.30.0130.00316.73
7.4.10.0030.01515.51
7.4.00.0060.01115.40
7.3.330.0000.00513.25
7.3.320.0030.00313.26
7.3.310.0080.00016.31
7.3.300.0070.00016.35
7.3.290.0090.00616.33
7.3.280.0110.00516.38
7.3.270.0140.00917.40
7.3.260.0150.00318.24
7.3.250.0080.00816.48
7.3.240.0120.01216.57
7.3.230.0080.00816.47
7.3.210.0170.00016.27
7.3.200.0130.00619.39
7.3.190.0090.00616.28
7.3.180.0080.00816.53
7.3.170.0050.01116.31
7.3.160.0180.00316.63
7.3.130.0110.00815.36
7.3.120.0050.01215.20
7.3.110.0030.01415.21
7.3.100.0100.00415.24
7.3.90.0070.00715.26
7.3.80.0040.00915.14
7.3.70.0040.00715.30
7.3.60.0110.00515.37
7.3.50.0070.00515.37
7.3.40.0090.00415.35
7.3.30.0080.00415.16
7.3.20.0090.00617.07
7.3.10.0070.00817.06
7.3.00.0080.00517.03
7.2.330.0100.01016.68
7.2.320.0100.00716.69
7.2.310.0150.00916.70
7.2.300.0070.01016.78
7.2.290.0180.00316.70
7.2.260.0070.01415.34
7.2.250.0110.00915.42
7.2.240.0080.00815.58
7.2.230.0060.00815.50
7.2.220.0060.01015.36
7.2.210.0080.00615.57
7.2.200.0080.00915.46
7.2.190.0050.00815.32
7.2.180.0040.01215.47
7.2.170.0090.00415.45
7.2.160.0060.00515.45
7.2.150.0060.01117.38
7.2.140.0040.01117.34
7.2.130.0080.00817.20
7.2.120.0100.00717.25
7.2.110.0070.00617.36
7.2.100.0060.00817.22
7.2.90.0060.00717.26
7.2.80.0060.01017.33
7.2.70.0040.00917.38
7.2.60.0030.01017.17
7.2.50.0050.00817.33
7.2.40.0050.01017.39
7.2.30.0060.00717.31
7.2.20.0030.00917.34
7.2.10.0060.00917.24
7.2.00.0070.00817.74
7.1.330.0050.01016.15
7.1.320.0050.00816.26
7.1.310.0040.01016.23
7.1.300.0030.01016.12
7.1.290.0040.00916.22
7.1.280.0040.00616.23
7.1.270.0040.00916.23
7.1.260.0060.00716.20
7.1.250.0060.00716.02
7.1.240.0080.00716.22
7.1.230.0070.00616.10
7.1.220.0050.00816.25
7.1.210.0050.00916.13
7.1.200.0070.00715.97
7.1.190.0040.00816.05
7.1.180.0040.00916.21
7.1.170.0080.00516.14
7.1.160.0050.01016.16
7.1.150.0030.00816.20
7.1.140.0050.00716.14
7.1.130.0070.00716.19
7.1.120.0040.01216.10
7.1.110.0080.00716.23
7.1.100.0040.00716.05
7.1.90.0070.00516.11
7.1.80.0090.00516.15
7.1.70.0040.00716.49
7.1.60.0060.00816.41
7.1.50.0050.01016.41
7.1.40.0070.00716.03
7.1.30.0040.00816.08
7.1.20.0040.00716.10
7.1.10.0060.00716.21
7.1.00.0020.02617.72
7.0.330.0060.00715.76
7.0.320.0080.00516.00
7.0.310.0030.00915.87
7.0.300.0050.00615.72
7.0.290.0090.00516.01
7.0.280.0080.00415.82
7.0.270.0010.01115.90
7.0.260.0090.00715.91
7.0.250.0060.00815.80
7.0.240.0040.00815.99
7.0.230.0030.00915.90
7.0.220.0080.00815.99
7.0.210.0050.01015.87
7.0.200.0060.00816.09
7.0.190.0060.00515.85
7.0.180.0050.00915.97
7.0.170.0070.00515.99
7.0.160.0050.00515.87
7.0.150.0020.00915.85
7.0.140.0050.02317.46
7.0.130.0060.00915.84
7.0.120.0060.00715.79
7.0.110.0060.00515.89
7.0.100.0080.00415.88
7.0.90.0040.00615.83
7.0.80.0040.00915.91
7.0.70.0050.00715.75
7.0.60.0070.01916.90
7.0.50.0070.02816.41
7.0.40.0060.02715.50
7.0.30.0130.02315.46
7.0.20.0120.01715.46
7.0.10.0050.02215.54
7.0.00.0050.01915.46
5.6.400.0070.00515.02
5.6.390.0020.01015.00
5.6.380.0050.00714.97
5.6.370.0080.00615.06
5.6.360.0080.00515.02
5.6.350.0060.00914.81
5.6.340.0050.01014.73
5.6.330.0060.00814.85
5.6.320.0090.00514.85
5.6.310.0070.00815.02
5.6.300.0030.00814.95
5.6.290.0060.00815.11
5.6.280.0040.02516.51
5.6.270.0090.00414.99
5.6.260.0050.00714.84
5.6.250.0070.00614.89
5.6.240.0050.01214.84
5.6.230.0080.00414.83
5.6.220.0070.00714.90
5.6.210.0030.01916.22
5.6.200.0060.01515.75
5.6.190.0060.02716.31
5.6.180.0120.01616.21
5.6.170.0090.01716.32
5.6.160.0070.02616.21
5.6.150.0050.01515.59
5.6.140.0070.02615.58
5.6.130.0120.01315.76
5.6.120.0080.01516.45
5.6.110.0070.01316.37
5.6.100.0060.01916.44
5.6.90.0070.02216.37
5.6.80.0070.02516.11
5.6.70.0040.00914.67
5.6.60.0060.00814.75
5.6.50.0070.00714.80
5.6.40.0040.01014.81
5.6.30.0070.00614.80
5.6.20.0050.00614.64
5.6.10.0100.00614.83
5.6.00.0050.00914.59
5.5.380.0090.01014.76
5.5.370.0120.00614.69
5.5.360.0090.01114.75
5.5.350.0080.02116.16
5.5.340.0070.01615.57
5.5.330.0070.01715.92
5.5.320.0220.02516.18
5.5.310.0050.03016.20
5.5.300.0080.03015.42
5.5.290.0080.01815.54
5.5.280.0090.03016.37
5.5.270.0060.02616.23
5.5.260.0090.01616.38
5.5.250.0120.01516.18
5.5.240.0080.02615.95
5.5.230.0080.01114.69
5.5.220.0070.00814.71
5.5.210.0050.01014.61
5.5.200.0120.00714.68
5.5.190.0030.01414.78
5.5.180.0060.01314.77
5.5.170.0110.00714.63
5.5.160.0080.00914.75
5.5.150.0100.00714.71
5.5.140.0070.01214.64
5.5.130.0120.00614.81
5.5.120.0050.01314.54
5.5.110.0080.00814.78
5.5.100.0060.01214.73
5.5.90.0100.00714.74
5.5.80.0080.01114.68
5.5.70.0080.01014.70
5.5.60.0090.00914.67
5.5.50.0060.01314.75
5.5.40.0120.00614.81
5.5.30.0090.01014.51
5.5.20.0060.01214.69
5.5.10.0110.00814.50
5.5.00.0080.00814.54
5.4.450.0110.01813.79
5.4.440.0110.02513.72
5.4.430.0070.01913.75
5.4.420.0110.02313.77
5.4.410.0110.01813.69
5.4.400.0100.01313.64
5.4.390.0090.02413.62
5.4.380.0130.01513.67
5.4.370.0120.01613.61
5.4.360.0100.02513.64
5.4.350.0100.02113.68
5.4.340.0120.02213.68
5.4.330.0100.00511.81
5.4.320.0110.02013.61
5.4.310.0120.02213.59
5.4.300.0140.01713.71
5.4.290.0130.02313.49
5.4.280.0130.02113.63
5.4.270.0160.01913.63
5.4.260.0120.01713.52
5.4.250.0090.01913.65
5.4.240.0090.02213.67
5.4.230.0090.02013.58
5.4.220.0100.02113.63
5.4.210.0110.01813.60
5.4.200.0110.01613.64
5.4.190.0110.01613.62
5.4.180.0160.01713.63
5.4.170.0130.02213.59
5.4.160.0130.02213.65
5.4.150.0090.01913.67
5.4.140.0090.02512.87
5.4.130.0080.02312.89
5.4.120.0110.01412.95
5.4.110.0120.02013.00
5.4.100.0100.02012.99
5.4.90.0110.01512.89
5.4.80.0100.02312.97
5.4.70.0120.01912.89
5.4.60.0120.01512.94
5.4.50.0110.02312.97
5.4.40.0130.01912.99
5.4.30.0080.02012.88
5.4.20.0090.02113.01
5.4.10.0110.02113.01
5.4.00.0090.02312.76
5.3.290.0080.02612.66
5.3.280.0120.01812.48
5.3.270.0110.02112.52
5.3.260.0130.01512.55
5.3.250.0110.02312.54
5.3.240.0090.02312.42
5.3.230.0100.01512.53
5.3.220.0110.01412.66
5.3.210.0100.02312.44
5.3.200.0150.01912.58
5.3.190.0090.02312.59
5.3.180.0110.01412.62
5.3.170.0110.02412.67
5.3.160.0080.02612.61
5.3.150.0120.02112.59
5.3.140.0080.02712.69
5.3.130.0150.01612.55
5.3.120.0150.01712.55
5.3.110.0120.01412.60
5.3.100.0110.02012.40
5.3.90.0110.01812.50
5.3.80.0070.02512.38
5.3.70.0120.02012.34
5.3.60.0080.02012.37
5.3.50.0100.01512.35
5.3.40.0090.01912.41
5.3.30.0110.02412.33
5.3.20.0110.02112.25
5.3.10.0100.01712.20
5.3.00.0120.01412.12
5.2.170.0130.07011.90
5.2.160.0170.04711.90
5.2.150.0230.05011.90
5.2.140.0130.04711.90
5.2.130.0230.05311.90
5.2.120.0130.05311.90
5.2.110.0230.03711.90
5.2.100.0200.05711.90
5.2.90.0170.05011.90
5.2.80.0270.02711.90
5.2.70.0170.04011.90
5.2.60.0130.04011.90
5.2.50.0170.04311.90
5.2.40.0130.03711.90
5.2.30.0200.04711.90
5.2.20.0170.03311.90
5.2.10.0230.05711.90
5.2.00.0130.05711.90
5.1.60.0170.04311.90
5.1.50.0130.02311.90
5.1.40.0170.02011.90
5.1.30.0130.04711.90
5.1.20.0130.03011.90
5.1.10.0130.03711.90
5.1.00.0200.05011.90
5.0.50.0070.05011.90
5.0.40.0070.03011.90
5.0.30.0100.06011.90
5.0.20.0100.04311.90
5.0.10.0030.03711.90
5.0.00.0070.06011.90
4.4.90.0030.02311.90
4.4.80.0070.02711.90
4.4.70.0070.02311.90
4.4.60.0100.01311.90
4.4.50.0070.03711.90
4.4.40.0000.06011.90
4.4.30.0070.01311.90
4.4.20.0100.02011.90
4.4.10.0070.02711.90
4.4.00.0070.05311.90
4.3.110.0130.01311.90
4.3.100.0170.02711.90
4.3.90.0100.02711.90
4.3.80.0130.04011.90
4.3.70.0070.03311.90
4.3.60.0070.03311.90
4.3.50.0070.04011.90
4.3.40.0100.04311.90
4.3.30.0070.02711.90
4.3.20.0100.03311.90
4.3.10.0070.03311.90
4.3.00.0070.03711.90

preferences:
37.91 ms | 401 KiB | 5 Q