3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://mp3.zing.vn/xml/album-xml/kHJmTZmaVRFQkCstkbJtDnLn'; function produce_XML_object_tree($raw_XML) { libxml_use_internal_errors(true); try { $xmlTree = new SimpleXMLElement($raw_XML); } catch (Exception $e) { // Something went wrong. $error_message = 'SimpleXMLElement threw an exception.'; foreach(libxml_get_errors() as $error_line) { $error_message .= "\t" . $error_line->message; } trigger_error($error_message); return false; } return $xmlTree; } $xml_feed_url = $url; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $xml_feed_url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $xml = curl_exec($ch); curl_close($ch); $cont = produce_XML_object_tree($xml); print_r(cont); print_r(simplexml_load_file(urlencode($url)));

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.0060.01116.50
8.3.50.0120.00922.05
8.3.40.0100.00318.99
8.3.30.0140.00018.79
8.3.20.0040.00420.10
8.3.10.0060.00823.68
8.3.00.0070.00019.97
8.2.180.0040.01116.75
8.2.170.0040.01122.96
8.2.160.0110.00420.48
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0060.00321.05
8.2.120.0080.00026.35
8.2.110.0030.00622.24
8.2.100.0130.00017.78
8.2.90.0080.00019.17
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0080.00020.90
8.2.30.0030.00320.68
8.2.20.0040.00417.69
8.2.10.0000.00818.05
8.2.00.0080.00018.04
8.1.280.0040.01825.92
8.1.270.0030.00618.93
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0080.00323.73
8.1.230.0030.00920.87
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0000.00818.46
8.1.160.0070.00020.60
8.1.150.0000.00718.88
8.1.140.0050.00317.45
8.1.130.0030.00317.67
8.1.120.0040.00417.41
8.1.110.0040.00417.28
8.1.100.0040.00417.39
8.1.90.0000.00717.39
8.1.80.0000.00817.40
8.1.70.0040.00417.22
8.1.60.0040.00517.36
8.1.50.0080.00017.54
8.1.40.0030.00617.48
8.1.30.0080.00017.65
8.1.20.0030.00617.60
8.1.10.0040.00417.61
8.1.00.0000.00717.41
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0040.00418.43
8.0.270.0040.00416.82
8.0.260.0000.00617.26
8.0.250.0030.00316.95
8.0.240.0060.00016.84
8.0.230.0000.00716.92
8.0.220.0030.00616.89
8.0.210.0070.00016.82
8.0.200.0030.00317.00
8.0.190.0000.00816.86
8.0.180.0000.00716.79
8.0.170.0040.00416.96
8.0.160.0070.00016.94
8.0.150.0000.00716.71
8.0.140.0060.00716.84
8.0.130.0000.00613.31
8.0.120.0000.00816.81
8.0.110.0040.00416.90
8.0.100.0000.00716.79
8.0.90.0070.00016.74
8.0.80.0030.01616.88
8.0.70.0030.00516.77
8.0.60.0000.00716.89
8.0.50.0070.00016.75
8.0.30.0110.00817.08
8.0.20.0090.01017.40
8.0.10.0020.00516.95
8.0.00.0070.01016.74
7.4.330.0030.00316.76
7.4.320.0030.00316.55
7.4.300.0000.00616.56
7.4.290.0000.00716.50
7.4.280.0080.00016.54
7.4.270.0040.00416.51
7.4.260.0050.00216.59
7.4.250.0030.00516.59
7.4.240.0020.00516.60
7.4.230.0030.00316.49
7.4.220.0070.01116.68
7.4.210.0070.00716.64
7.4.200.0030.00316.52
7.4.160.0230.00016.63
7.4.150.0150.00317.40
7.4.140.0110.01017.86
7.4.130.0070.01216.49
7.4.120.0070.01116.51
7.4.110.0100.00716.43
7.4.100.0060.01216.51
7.4.90.0120.00616.48
7.4.80.0130.00719.39
7.4.70.0060.01016.71
7.4.60.0060.00916.52
7.4.50.0040.01116.54
7.4.40.0040.01216.73
7.4.30.0070.01516.47
7.4.00.0060.01215.13
7.3.330.0050.00013.33
7.3.320.0050.00013.24
7.3.310.0000.00816.34
7.3.300.0000.00716.36
7.3.290.0060.00816.34
7.3.280.0110.00816.37
7.3.270.0120.00617.40
7.3.260.0090.01516.60
7.3.250.0080.00916.29
7.3.240.0030.01416.41
7.3.230.0070.01016.39
7.3.210.0060.01016.61
7.3.200.0110.00616.54
7.3.190.0030.01216.36
7.3.180.0140.01116.63
7.3.170.0120.00616.57
7.3.160.0070.01416.67
7.3.120.0060.01314.49
7.3.110.0120.00614.93
7.3.100.0060.00314.77
7.3.90.0030.01414.53
7.3.80.0030.00914.88
7.3.70.0070.01014.84
7.3.60.0080.00314.62
7.3.50.0090.00614.54
7.3.40.0030.01014.85
7.3.30.0060.00614.61
7.3.20.0030.00616.62
7.3.10.0100.00316.61
7.3.00.0100.00016.75
7.2.330.0040.01516.66
7.2.320.0120.00616.52
7.2.310.0130.00316.66
7.2.300.0130.00316.67
7.2.290.0060.01116.59
7.2.240.0110.00714.88
7.2.230.0060.00614.89
7.2.220.0060.00914.86
7.2.210.0070.00715.11
7.2.200.0070.01014.86
7.2.190.0040.01115.00
7.2.180.0060.00914.89
7.2.170.0000.00814.64
7.2.160.0030.00914.94
7.2.150.0000.01416.76
7.2.140.0060.00316.76
7.2.130.0080.00416.73
7.2.120.0000.01316.82
7.2.110.0000.00816.69
7.2.100.0030.01016.77
7.2.90.0060.00616.56
7.2.80.0000.01216.67
7.2.70.0070.00716.89
7.2.60.0060.00616.67
7.2.50.0030.00916.54
7.2.40.0120.00016.87
7.2.30.0000.00816.75
7.2.20.0070.00716.83
7.2.10.0090.00016.49
7.2.00.0040.00718.09
7.1.330.0030.01315.54
7.1.320.0030.00615.54
7.1.310.0030.01015.24
7.1.300.0070.00715.64
7.1.290.0000.00915.77
7.1.280.0090.00315.41
7.1.270.0100.00315.45
7.1.260.0030.01215.37
7.1.250.0070.00315.64
7.1.200.0070.00715.80
7.1.100.0170.00816.45
7.1.70.0000.00817.14
7.1.60.0070.01719.50
7.1.50.0040.01816.90
7.1.00.0030.07722.36
7.0.200.0030.00516.61
7.0.60.0030.04320.07
7.0.50.0100.07017.91
7.0.40.0030.04720.32
7.0.30.0170.04020.34
7.0.20.0370.06320.19
7.0.10.0070.06320.23
7.0.00.0100.05020.19
5.6.280.0030.06321.11
5.6.210.0070.08720.54
5.6.200.0070.06318.16
5.6.190.0070.08720.48
5.6.180.0270.04720.48
5.6.170.0370.07320.39
5.6.160.0100.06720.39
5.6.150.0130.06318.15
5.6.140.0000.08718.12
5.6.130.0030.05018.28
5.6.120.0070.07021.00
5.6.110.0030.04320.97
5.6.100.0100.06320.92
5.6.90.0100.08021.13
5.6.80.0030.04020.36
5.5.350.0030.08320.43
5.5.340.0030.05717.95
5.5.330.0030.04320.27
5.5.320.0070.08020.36
5.5.310.0230.03320.23
5.5.300.0070.08018.03
5.5.290.0030.04017.97
5.5.280.0100.03720.98
5.5.270.0100.06020.85
5.5.260.0130.05320.98
5.5.250.0030.08720.59
5.5.240.0130.07720.27

preferences:
50.71 ms | 401 KiB | 5 Q