3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: text/plain; charset=utf-8'); error_reporting(0); ////////////////////////////////////////// $urlParams = explode('/', $_SERVER['REQUEST_URI']); $word = $urlParams[2]; $url = "http://www.oxfordlearnersdictionaries.com/definition/english/comfortable"; ////////////////////////////////////////// $dom = new DOMDocument; $dom->loadHTMLFile($url); $xpath = new DOMXPath($dom); $qx = '//*[@class="pron-gs ei-g"]/span[@class="pron-g"]'; $nodes = $xpath->query($qx); /* Set HTTP response header to plain text for debugging output */ header("Content-type: text/plain"); /* Traverse the DOMNodeList object to output each DomNode's nodeValue */ foreach ($nodes as $i => $node) { echo "\n\n", "Node($i): ", $node->C14N(), "\n"; } //*[@id="ceremony__10"]/span[2] //*[@id="tab3"]/div/div[1]/strong/span //$rqx5 = '//div[@class="tudich"]/div[@class="candich"]'; // tieu de co han tu //$rqx5 = '//div[@class="tudich"]/div[@class="kqdich"]/div[@class="nddich"]/span'; // khong co han tu //$rqx5 = '//div[@class="tudich"]/div[@class="kqdich"]/div[@class="nddich"]/strong[1]'; // nghia //$result = array(); // foreach ($nodes as $i => $node) { // $child = $xpath->query($rqx5, $node)->item(0); // if (!empty($child)) { // echo PHP_EOL . $i ." = ". $child->nodeValue; // } // else { // echo PHP_EOL . $i ." = ". ":)"; // } // } ?>

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.00317.50
8.3.50.0110.01022.17
8.3.40.0060.00919.42
8.3.30.0060.01019.28
8.3.20.0080.00020.59
8.3.10.0050.00324.19
8.3.00.0040.00419.88
8.2.180.0100.00719.04
8.2.170.0110.00722.96
8.2.160.0100.01020.84
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0060.00318.13
8.2.110.0050.00521.49
8.2.100.0090.00318.41
8.2.90.0080.00019.80
8.2.80.0090.00218.13
8.2.70.0060.00318.25
8.2.60.0000.00818.43
8.2.50.0030.00618.25
8.2.40.0000.00918.72
8.2.30.0080.00318.60
8.2.20.0030.00518.40
8.2.10.0040.00418.53
8.2.00.0040.00418.48
8.1.280.0120.00625.92
8.1.270.0040.00424.47
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0060.00323.06
8.1.230.0080.00418.31
8.1.220.0000.00818.29
8.1.210.0040.00418.77
8.1.200.0000.01017.85
8.1.190.0090.00317.47
8.1.180.0030.00718.10
8.1.170.0060.00319.15
8.1.160.0040.00419.37
8.1.150.0040.00419.35
8.1.140.0000.00820.04
8.1.130.0000.00718.18
8.1.120.0040.00417.74
8.1.110.0030.00617.93
8.1.100.0050.00217.92
8.1.90.0050.00217.74
8.1.80.0050.00217.93
8.1.70.0080.00017.94
8.1.60.0040.00417.99
8.1.50.0000.00817.95
8.1.40.0000.00818.00
8.1.30.0030.00617.98
8.1.20.0030.00718.13
8.1.10.0000.00818.05
8.1.00.0040.00417.84
8.0.300.0000.00818.77
8.0.290.0040.00417.38
8.0.280.0000.00718.91
8.0.270.0040.00417.74
8.0.260.0000.00717.66
8.0.250.0080.00017.45
8.0.240.0070.00017.51
8.0.230.0000.00717.49
8.0.220.0030.00317.37
8.0.210.0000.00917.33
8.0.200.0030.00317.50
8.0.190.0090.00017.43
8.0.180.0000.00817.44
8.0.170.0000.00917.42
8.0.160.0000.00917.42
8.0.150.0020.00517.29
8.0.140.0040.00417.39
8.0.130.0060.00013.97
8.0.120.0040.00417.40
8.0.110.0040.00417.45
8.0.100.0000.00817.46
8.0.90.0040.00417.38
8.0.80.0160.00317.52
8.0.70.0050.00317.47
8.0.60.0030.00617.37
8.0.50.0080.00017.48
8.0.30.0120.00617.70
8.0.20.0150.00617.67
8.0.10.0040.00417.64
8.0.00.0080.01117.31
7.4.330.0050.00015.08
7.4.320.0080.00016.91
7.4.300.0030.00517.14
7.4.290.0050.00517.00
7.4.280.0030.00517.05
7.4.270.0030.00317.03
7.4.260.0040.00417.07
7.4.250.0080.00016.99
7.4.240.0020.00617.09
7.4.230.0040.00416.98
7.4.220.0130.00917.02
7.4.210.0150.00717.06
7.4.200.0000.00817.23
7.4.160.0100.00716.99
7.4.150.0100.00917.40
7.4.140.0160.00817.86
7.4.130.0130.00817.10
7.4.120.0130.00517.25
7.4.110.0120.00617.11
7.4.100.0090.00917.13
7.4.90.0110.00616.95
7.4.80.0130.00719.39
7.4.70.0150.00317.16
7.4.60.0100.00717.11
7.4.50.0050.00017.09
7.4.40.0070.01016.91
7.4.30.0100.01317.17
7.4.00.0090.00915.24
7.3.330.0030.00313.64
7.3.320.0060.00013.77
7.3.310.0040.00416.89
7.3.300.0040.00416.93
7.3.290.0100.00816.92
7.3.280.0100.01117.01
7.3.270.0110.01117.40
7.3.260.0110.00616.96
7.3.250.0100.01017.06
7.3.240.0100.01217.04
7.3.230.0060.01217.22
7.3.210.0120.00916.87
7.3.200.0120.01216.96
7.3.190.0120.00617.05
7.3.180.0120.00616.93
7.3.170.0060.01216.95
7.3.160.0140.00417.13
7.3.120.0110.00915.36
7.3.110.0070.01215.04
7.3.100.0080.00815.26
7.3.90.0080.00515.29
7.3.80.0020.00815.19
7.3.70.0050.00815.02
7.3.60.0070.00715.29
7.3.50.0090.00415.12
7.3.40.0080.00515.27
7.3.30.0060.01015.06
7.3.20.0060.01017.11
7.3.10.0070.00816.97
7.3.00.0060.00516.98
7.2.330.0050.01417.34
7.2.320.0100.01017.32
7.2.310.0060.01217.26
7.2.300.0130.00617.15
7.2.290.0090.00917.26
7.2.250.0070.00915.30
7.2.240.0120.00815.27
7.2.230.0080.00915.60
7.2.220.0070.00915.52
7.2.210.0050.01115.33
7.2.200.0060.00915.39
7.2.190.0060.00615.52
7.2.180.0070.00915.30
7.2.170.0060.00815.42
7.2.160.0030.00815.21
7.2.150.0100.00717.25
7.2.140.0030.00617.00
7.2.130.0030.00917.02
7.2.120.0000.01917.36
7.2.110.0070.00717.18
7.2.100.0110.00716.98
7.2.90.0120.00617.16
7.2.80.0030.01417.38
7.2.70.0100.00717.17
7.2.60.0040.01017.40
7.2.50.0000.00817.30
7.2.40.0080.00817.16
7.2.30.0110.00017.21
7.2.20.0090.00917.44
7.2.10.0100.00717.36
7.2.00.0100.00818.58
7.1.330.0060.00916.17
7.1.320.0050.00916.17
7.1.310.0060.00616.24
7.1.300.0070.00716.21
7.1.290.0010.01315.99
7.1.280.0020.01316.06
7.1.270.0010.01116.12
7.1.260.0040.00616.23
7.1.250.0100.00616.30
7.1.200.0090.00615.95
7.1.100.0000.01418.69
7.1.70.0030.00617.36
7.1.60.0210.00419.43
7.1.50.0070.01417.20
7.1.00.0030.07322.79
7.0.200.0030.00617.06
7.0.60.0030.09020.46
7.0.50.0030.06018.31
7.0.40.0070.04020.65
7.0.30.0200.08720.69
7.0.20.0270.07320.50
7.0.10.0270.04020.78
7.0.00.0000.05320.65
5.6.280.0030.04321.41
5.6.210.0070.09020.91
5.6.200.0030.08018.70
5.6.190.0100.04021.07
5.6.180.0100.06321.07
5.6.170.0400.04020.97
5.6.160.0100.08020.96
5.6.150.0200.06718.66
5.6.140.0070.08018.71
5.6.130.0170.06018.80
5.6.120.0070.08721.51
5.6.110.0030.05321.58
5.6.100.0000.08021.41
5.6.90.0070.08721.40
5.6.80.0100.03321.02
5.6.70.0300.07321.02
5.5.350.0100.08020.96
5.5.340.0070.08318.46
5.5.330.0100.07320.84
5.5.320.0170.04720.73
5.5.310.0200.08720.81
5.5.300.0200.05718.52
5.5.290.0030.04718.49
5.5.280.0070.08021.39
5.5.270.0030.05321.28
5.5.260.0100.06721.38
5.5.250.0000.04720.91
5.5.240.0130.07320.68
5.4.450.0600.05320.19
5.4.440.0600.05320.09
5.4.430.0670.04719.94
5.4.420.0630.06019.96
5.4.410.0670.05719.85
5.4.400.0670.05319.74
5.4.390.0800.05019.54
5.4.380.0670.05319.58
5.4.370.0700.05319.89
5.4.360.0800.05019.60
5.4.350.0570.06319.83
5.4.340.0700.04719.57
5.4.320.0570.05319.76
5.4.310.0600.04719.59
5.4.300.0570.05019.86
5.4.290.0630.04719.48
5.4.280.0670.04319.83
5.4.270.0600.05719.59
5.4.260.0600.05019.60
5.4.250.0670.05019.62
5.4.240.0630.05719.54
5.4.230.0700.06319.73
5.4.220.0830.06319.64
5.4.210.0800.06719.67
5.4.200.0900.05019.85
5.4.190.0670.06019.72
5.4.180.0900.07019.54
5.4.170.0770.05019.61
5.4.160.0730.05719.69
5.4.150.0530.05719.55
5.4.140.0570.06017.07
5.4.130.0670.05016.98
5.4.120.0600.04717.09
5.4.110.0900.05716.95
5.4.100.0630.06017.14
5.4.90.0700.05017.05
5.4.80.0700.05017.13
5.4.70.0730.04717.27
5.4.60.0500.06017.21
5.4.50.0830.04017.02
5.4.40.0770.04317.00
5.4.30.0670.05017.13
5.4.20.0730.04717.08
5.4.10.0770.04717.01
5.4.00.0570.06016.39

preferences:
56.52 ms | 401 KiB | 5 Q