3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?airlineCode=FR&amp;flightNumber=2220"); //curl_setopt($ch, CURLOPT_FILE, $fp); $html = curl_exec($ch); // grab URL and pass it to the browser //$data = curl_exec($ch); //var_dump($data); // close cURL resource, and free up system resources curl_close($ch); $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = new DOMXpath($doc); // example 1: for everything with an id //$elements = $xpath->query("//*[@id]"); // example 2: for node data in a selected id //$elements = $xpath->query("/html/body/div[@id='yourTagIdHere']"); // example 3: same as above with wildcard $elements = $xpath->query("*/div[@class='flightStatusByFlightBlock']"); var_dump($elements); //if (!is_null($elements)) { foreach ($elements as $element) { //echo "<br/>[". $element->nodeName. "]"; var_dump($element); //$nodes = $element->childNodes; //foreach ($nodes as $node) { // echo $node->nodeValue. "\n"; //} } ?>

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.0040.01116.50
8.3.50.0130.00521.97
8.3.40.0110.00418.97
8.3.30.0070.00719.09
8.3.20.0040.00420.16
8.3.10.0030.00523.53
8.3.00.0030.00519.26
8.2.180.0070.00718.57
8.2.170.0120.00922.96
8.2.160.0040.01120.38
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00022.26
8.2.110.0030.00822.08
8.2.100.0080.00417.78
8.2.90.0050.00317.78
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0030.00517.92
8.2.50.0050.00318.07
8.2.40.0080.00019.88
8.2.30.0000.00717.90
8.2.20.0030.00517.62
8.2.10.0000.00717.98
8.2.00.0060.00317.61
8.1.280.0070.00725.92
8.1.270.0050.00322.10
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00320.73
8.1.230.0070.00420.89
8.1.220.0050.00517.74
8.1.210.0000.00818.79
8.1.200.0060.00317.22
8.1.190.0080.00017.41
8.1.180.0000.01018.10
8.1.170.0000.00818.59
8.1.160.0000.00721.96
8.1.150.0040.00418.60
8.1.140.0040.00417.35
8.1.130.0040.00417.87
8.1.120.0000.00717.19
8.1.110.0070.00017.29
8.1.100.0030.00517.34
8.1.90.0000.00717.40
8.1.80.0030.00617.20
8.1.70.0070.00017.27
8.1.60.0000.00817.48
8.1.50.0040.00417.46
8.1.40.0040.00417.54
8.1.30.0000.00817.55
8.1.20.0070.00017.62
8.1.10.0000.00817.46
8.1.00.0000.00817.36
8.0.300.0040.00419.90
8.0.290.0040.00416.93
8.0.280.0070.00018.41
8.0.270.0040.00417.13
8.0.260.0030.00317.20
8.0.250.0000.00716.96
8.0.240.0000.00716.87
8.0.230.0040.00416.98
8.0.220.0000.00716.89
8.0.210.0040.00416.97
8.0.200.0040.00416.99
8.0.190.0040.00416.88
8.0.180.0050.00416.93
8.0.170.0000.00816.77
8.0.160.0000.00716.90
8.0.150.0000.00716.94
8.0.140.0030.00316.74
8.0.130.0040.00413.27
8.0.120.0030.00516.84
8.0.110.0040.00416.90
8.0.100.0080.00016.78
8.0.90.0070.00016.86
8.0.80.0060.00916.91
8.0.70.0070.00016.82
8.0.60.0070.00016.79
8.0.50.0000.00716.91
8.0.30.0110.01117.12
8.0.20.0140.00517.40
8.0.10.0000.00816.83
8.0.00.0060.01316.63
7.4.330.0000.00515.03
7.4.320.0000.00616.38
7.4.300.0030.00316.54
7.4.290.0030.00316.37
7.4.280.0000.00816.56
7.4.270.0030.00316.57
7.4.260.0030.00316.54
7.4.250.0040.00416.44
7.4.240.0020.00616.51
7.4.230.0030.00316.56
7.4.220.0130.00316.55
7.4.210.0080.00716.57
7.4.200.0040.00416.35
7.4.190.0050.00216.62
7.4.160.0110.00416.43
7.4.150.0100.00717.40
7.4.140.0120.00817.86
7.4.130.0100.00716.47
7.4.120.0110.00716.44
7.4.110.0140.00716.40
7.4.100.0140.00716.54
7.4.90.0080.00816.42
7.4.80.0040.01519.39
7.4.70.0100.00716.47
7.4.60.0050.01116.28
7.4.50.0030.00316.52
7.4.40.0050.00822.77
7.4.30.0060.00916.38
7.4.00.0030.01215.00
7.3.330.0000.00513.13
7.3.320.0050.00013.13
7.3.310.0070.00016.43
7.3.300.0060.00016.24
7.3.290.0100.00416.30
7.3.280.0130.00516.30
7.3.270.0110.00617.40
7.3.260.0170.00316.25
7.3.250.0100.01016.28
7.3.240.0080.00816.20
7.3.230.0120.00616.39
7.3.210.0070.01016.27
7.3.200.0200.00319.39
7.3.190.0120.00616.55
7.3.180.0080.01416.44
7.3.170.0080.01116.36
7.3.160.0090.00716.44
7.3.120.0030.01414.79
7.2.330.0100.00716.55
7.2.320.0170.00616.55
7.2.310.0140.00716.17
7.2.300.0090.00916.40
7.2.290.0040.01316.20
7.2.60.0070.00316.56
7.2.00.0070.00719.10
7.1.200.0040.00815.70
7.1.100.0030.00817.92
7.1.70.0110.00016.95
7.1.60.0150.00919.46
7.1.50.0120.01216.80
7.1.00.0000.07722.31
7.0.200.0060.00316.50
7.0.140.0070.07022.00
7.0.60.0070.07719.95
7.0.50.0000.09017.85
7.0.40.0070.06720.30
7.0.30.0230.03720.16
7.0.20.0100.04720.21
7.0.10.0070.08720.00
7.0.00.0070.04720.12
5.6.280.0100.06720.82
5.6.210.0030.08320.45
5.6.200.0070.05018.10
5.6.190.0070.07020.43
5.6.180.4200.04020.41
5.6.170.0270.07720.33
5.6.160.0030.09020.41
5.6.150.0100.08318.22
5.6.140.0130.07318.07
5.6.130.0130.03018.21
5.6.120.0100.04720.99
5.6.110.0030.09320.99
5.6.100.0130.06720.88
5.6.90.0030.04321.01
5.6.80.0100.06320.40
5.6.70.0300.06720.47
5.5.350.0200.07320.34
5.5.340.0170.06717.95
5.5.330.0330.02720.20
5.5.320.0400.03720.32
5.5.310.0130.05320.29
5.5.300.0100.08317.90
5.5.290.0030.05317.95
5.5.280.0100.03720.77
5.5.270.0100.08020.89
5.5.260.0030.04020.68
5.5.250.0070.07320.55
5.5.240.0370.07020.26
5.4.450.0230.05719.45
5.4.440.0100.05719.50
5.4.430.0130.05719.34
5.4.420.0170.07019.46
5.4.410.0030.06019.35
5.4.400.0170.04319.20
5.4.390.0030.05719.14
5.4.380.0430.06718.64
5.4.370.0300.05318.50
5.4.360.0230.05018.57
5.4.350.0200.06018.73
5.4.340.0270.05318.74
5.4.320.0070.03912.45
5.4.310.0050.04512.45
5.4.300.0060.03812.46
5.4.290.0070.03812.45
5.4.280.0110.05112.32
5.4.270.0060.04312.32
5.4.260.0070.04012.32
5.4.250.0120.05612.32
5.4.240.0140.06712.32
5.4.230.0120.06212.32
5.4.220.0100.05112.32
5.4.210.0100.05312.31
5.4.200.0070.05712.32
5.4.190.0080.05312.31
5.4.180.0120.04912.31
5.4.170.0100.06012.32
5.4.160.0100.05412.32
5.4.150.0120.05012.32
5.4.140.0080.05412.00
5.4.130.0140.04311.98
5.4.120.0080.05011.95
5.4.110.0120.03711.94
5.4.100.0060.05111.94
5.4.90.0110.04811.94
5.4.80.0090.04311.94
5.4.70.0100.04811.94
5.4.60.0090.05211.93
5.4.50.0130.04711.93
5.4.40.0150.03911.93
5.4.30.0120.04511.93
5.4.20.0120.05011.92
5.4.10.0060.04411.92
5.4.00.0080.03611.41
5.3.290.0080.04512.80
5.3.280.0120.03812.71
5.3.270.0100.05612.72
5.3.260.0120.05512.71
5.3.250.0140.04812.72
5.3.240.0090.05412.71
5.3.230.0120.05112.71
5.3.220.0070.05312.68
5.3.210.0140.06212.68
5.3.200.0120.05412.68
5.3.190.0120.04912.68
5.3.180.0190.04112.67
5.3.170.0090.03712.67
5.3.160.0100.03812.68
5.3.150.0090.03912.68
5.3.140.0100.03912.66
5.3.130.0070.04212.65
5.3.120.0120.05512.65
5.3.110.0150.04912.66
5.3.100.0090.05012.12
5.3.90.0090.04812.08
5.3.80.0120.05212.07
5.3.70.0090.05012.07
5.3.60.0130.04412.07
5.3.50.0080.05412.00
5.3.40.0070.05812.00
5.3.30.0110.05011.94
5.3.20.0100.05311.70
5.3.10.0150.06211.66
5.3.00.0100.06711.66
5.2.170.0050.0539.15
5.2.160.0060.0489.16
5.2.150.0100.0469.15
5.2.140.0100.0469.15
5.2.130.0130.0419.11
5.2.120.0090.0419.11
5.2.110.0110.0449.11
5.2.100.0090.0459.12
5.2.90.0090.0469.11
5.2.80.0110.0469.11
5.2.70.0080.0419.11
5.2.60.0110.0409.07
5.2.50.0110.0419.04
5.2.40.0080.0439.01
5.2.30.0100.0488.98
5.2.20.0100.0478.97
5.2.10.0060.0458.90
5.2.00.0090.0528.76
5.1.60.0090.0398.04
5.1.50.0110.0358.04
5.1.40.0100.0348.02
5.1.30.0040.0398.37
5.1.20.0070.0438.39
5.1.10.0120.0358.12
5.1.00.0070.0378.13
5.0.50.0060.0286.61
5.0.40.0080.0266.47
5.0.30.0070.0406.27
5.0.20.0070.0276.26
5.0.10.0080.0276.24
5.0.00.0070.0466.22
4.4.90.0040.0244.78
4.4.80.0080.0194.75
4.4.70.0080.0204.76
4.4.60.0060.0224.75
4.4.50.0100.0204.77
4.4.40.0070.0334.71
4.4.30.0080.0204.76
4.4.20.0070.0224.85
4.4.10.0070.0224.85
4.4.00.0040.0364.76
4.3.110.0070.0214.67
4.3.100.0030.0234.67
4.3.90.0060.0214.63
4.3.80.0050.0344.58
4.3.70.0060.0194.63
4.3.60.0030.0234.63
4.3.50.0060.0184.62
4.3.40.0040.0334.54
4.3.30.0060.0203.27
4.3.20.0040.0213.25
4.3.10.0060.0193.21
4.3.00.0070.0177.29

preferences:
36 ms | 401 KiB | 5 Q