3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = grab_content('http://www.metano-logistics.com/metano_olm/assets/view_asset.php?id=17876&page_mode=2009'); $dom = new DOMDocument; $dom->loadHTML($html); $xpath = new DOMXPath($dom); $results = $xpath->query("//div[@class='tabbed_container']"); $content_array = array(); if ($results->length > 0) { $dom->saveXML($results->item(0)); //exit; for($i=0;$i<5;$i++){ $content_array[] = $dom->saveXML($results->item($i)); } } function grab_content($url){ $ch = curl_init(); $timeout = 50; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $data = curl_exec($ch); curl_close($ch); print_r($data); return $data; }

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.0160.00716.61
8.3.50.0130.00821.19
8.3.40.0110.00418.72
8.3.30.0170.00318.54
8.3.20.0030.01220.16
8.3.10.0060.00321.77
8.3.00.0080.00019.44
8.2.180.0060.00916.63
8.2.170.0090.00922.96
8.2.160.0130.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00417.50
8.2.110.0090.00022.11
8.2.100.0060.00617.63
8.2.90.0000.00819.13
8.2.80.0090.00017.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0030.00519.38
8.2.30.0020.00518.15
8.2.20.0040.00417.72
8.2.10.0000.00718.04
8.2.00.0040.00417.91
8.1.280.0140.00725.92
8.1.270.0040.00420.37
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.45
8.1.230.0080.00317.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0080.00017.10
8.1.180.0080.00018.10
8.1.170.0000.00918.51
8.1.160.0000.00721.99
8.1.150.0000.00718.81
8.1.140.0000.00917.37
8.1.130.0050.00517.70
8.1.120.0060.00317.38
8.1.110.0040.00417.28
8.1.100.0020.00517.30
8.1.90.0000.00717.35
8.1.80.0000.00817.35
8.1.70.0000.00717.34
8.1.60.0040.00417.57
8.1.50.0000.00817.46
8.1.40.0000.00817.42
8.1.30.0040.00417.60
8.1.20.0000.00817.55
8.1.10.0000.00817.57
8.1.00.0000.00817.39
8.0.300.0070.00418.77
8.0.290.0030.00616.75
8.0.280.0080.00018.42
8.0.270.0080.00017.14
8.0.260.0070.00017.14
8.0.250.0040.00417.00
8.0.240.0000.00716.89
8.0.230.0000.00716.95
8.0.220.0040.00716.89
8.0.210.0030.00316.96
8.0.200.0040.00416.88
8.0.190.0000.00817.05
8.0.180.0000.00816.99
8.0.170.0030.00516.98
8.0.160.0000.00816.89
8.0.150.0040.00416.76
8.0.140.0040.00416.90
8.0.130.0060.00013.36
8.0.120.0040.00416.88
8.0.110.0040.00416.92
8.0.100.0020.00516.82
8.0.90.0030.00516.71
8.0.80.0100.00616.99
8.0.70.0000.00716.95
8.0.60.0000.00716.84
8.0.50.0050.00216.88
8.0.30.0090.01017.06
8.0.20.0080.01117.43
8.0.10.0070.00017.05
8.0.00.0070.01016.86
7.4.330.0000.00615.08
7.4.320.0000.00616.48
7.4.300.0000.00616.36
7.4.290.0050.00216.45
7.4.280.0000.00916.44
7.4.270.0000.00716.55
7.4.260.0070.00016.55
7.4.250.0000.00716.32
7.4.240.0040.00316.45
7.4.230.0000.00716.34
7.4.220.0110.00716.55
7.4.210.0060.00816.64
7.4.200.0030.00316.37
7.4.160.0180.00016.42
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0110.00816.63
7.4.120.0100.01016.44
7.4.110.0100.00716.54
7.4.100.0130.00416.50
7.4.90.0070.01116.45
7.4.80.0110.00819.39
7.4.70.0030.01316.18
7.4.60.0100.01016.50
7.4.50.0040.00416.68
7.4.40.0130.00316.21
7.4.30.0110.00716.49
7.4.00.0070.00814.97
7.3.330.0000.00513.27
7.3.320.0040.00413.12
7.3.310.0000.00716.20
7.3.300.0070.00016.32
7.3.290.0040.00416.19
7.3.280.0100.00916.30
7.3.270.0100.00717.40
7.3.260.0210.00316.23
7.3.250.0140.00416.29
7.3.240.0080.01616.55
7.3.230.0070.01016.55
7.3.210.0080.00816.58
7.3.200.0100.01016.44
7.3.190.0140.00316.50
7.3.180.0110.00416.27
7.3.170.0060.00916.39
7.3.160.0070.01016.43
7.3.120.0060.01214.84
7.3.110.0040.00714.73
7.3.100.0100.00714.66
7.3.90.0060.00314.79
7.3.80.0070.00714.95
7.3.70.0070.00714.69
7.3.60.0030.01114.74
7.3.50.0000.01214.59
7.3.40.0060.00914.55
7.3.30.0070.01014.65
7.3.20.0150.00316.61
7.3.10.0100.00716.30
7.3.00.0040.01116.73
7.2.330.0070.01116.58
7.2.320.0100.01316.51
7.2.310.0070.01116.61
7.2.300.0070.01016.59
7.2.290.0100.01016.41
7.2.250.0100.00715.05
7.2.240.0090.00915.04
7.2.230.0030.01314.84
7.2.220.0030.01214.45
7.2.210.0070.00714.74
7.2.200.0090.00914.79
7.2.190.0030.01014.88
7.2.180.0140.00014.89
7.2.170.0070.01114.91
7.2.80.0100.00716.52
7.2.60.0090.00016.73
7.2.00.0240.00518.83
7.1.330.0090.00315.33
7.1.320.0070.00715.43
7.1.310.0100.00715.66
7.1.300.0090.00015.65
7.1.290.0070.00715.72
7.1.280.0030.01415.43
7.1.270.0090.00615.62
7.1.260.0000.01315.45
7.1.200.0110.00415.47
7.1.100.0000.01118.18
7.1.70.0000.00816.75
7.1.60.0100.01019.17
7.1.50.0110.00316.70
7.1.00.0070.07322.45
7.0.200.0030.00716.63
7.0.60.0000.04320.08
7.0.50.0170.06717.85
7.0.40.0130.08020.11
7.0.30.0370.06720.10
7.0.20.0170.07020.15
7.0.10.0030.09320.16
7.0.00.0070.04320.25
5.6.280.0100.05720.82
5.6.210.0070.04020.75
5.6.200.0100.06718.16
5.6.190.0070.06320.48
5.6.180.0030.05320.61
5.6.170.0270.07320.46
5.6.160.0100.07020.45
5.6.150.0030.05018.15
5.6.140.0030.09018.18
5.6.130.0030.04018.17
5.6.120.0070.08021.20
5.6.110.0130.08721.03
5.6.100.0130.07321.02
5.6.90.0070.04021.11
5.6.80.0100.08020.39
5.6.70.4130.03720.36
5.5.350.0300.07320.41
5.5.340.0000.04317.99
5.5.330.0070.07020.57
5.5.320.0070.08020.30
5.5.310.0200.05320.41
5.5.300.0070.05717.95
5.5.290.0070.08318.08
5.5.280.0000.05320.88
5.5.270.0170.05320.77
5.5.260.0130.06320.77
5.5.250.0130.08020.65
5.5.240.0300.07320.13
5.4.450.0200.06719.46
5.4.440.0230.05719.49
5.4.430.0170.06019.51
5.4.420.0230.05319.58
5.4.410.0270.05019.25
5.4.400.0270.05019.12
5.4.390.0270.05318.88
5.4.380.0300.05019.14
5.4.370.0300.04719.29
5.4.360.0270.05019.11
5.4.350.0230.06019.25
5.4.340.0300.05019.23
5.4.320.0270.05718.98
5.4.310.0230.05719.23
5.4.300.0170.06719.12
5.4.290.0370.04319.27
5.4.280.0100.06719.15
5.4.270.0200.05719.28
5.4.260.0330.04018.87
5.4.250.0230.05319.25
5.4.240.0270.05019.27
5.4.230.0300.04719.13
5.4.220.0130.06319.12
5.4.210.0230.05019.28
5.4.200.0270.05018.86
5.4.190.0270.05019.05
5.4.180.0270.05018.96
5.4.170.0270.05319.13
5.4.160.0370.05719.26
5.4.150.0330.04719.27
5.4.140.0170.06016.34
5.4.130.0270.05016.43
5.4.120.0370.05316.56
5.4.110.0400.05016.52
5.4.100.0270.05016.52
5.4.90.0230.04716.27
5.4.80.0270.04316.23
5.4.70.0370.06016.59
5.4.60.0330.06316.38
5.4.50.0000.06716.51
5.4.40.0070.05316.53
5.4.30.0030.06716.51
5.4.20.0030.08016.16

preferences:
44.98 ms | 401 KiB | 5 Q