3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOF <div id="nav"> <ul id="someID"> <li><a href="/poker/?ca=v"> THIS </a></li> </ul> </div> EOF; function extractNodeValue($query, $xPath, $attribute = null) { $node = $xPath->query("//{$query}")->item(0); if (!$node) { return null; } return $attribute ? $node->getAttribute($attribute) : $node->nodeValue; } $document = new DOMDocument(); $document->loadHTML($html); $xPath = new DOMXpath($document); $name = extractNodeValue("//a[@href="/poker/?ca=v']/text()",$xPath);

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)
5.4.210.0100.04712.40
5.4.200.0160.04112.39
5.4.190.0110.04412.39
5.4.180.0140.04112.39
5.4.170.0130.04412.40
5.4.160.0130.03912.39
5.4.150.0110.04212.39
5.4.140.0110.04612.08
5.4.130.0110.04412.06
5.4.120.0130.03912.03
5.4.110.0120.04012.03
5.4.100.0120.03912.03
5.4.90.0130.04412.03
5.4.80.0090.04712.03
5.4.70.0120.04012.02
5.4.60.0240.05712.02
5.4.50.0150.03612.02
5.4.40.0100.04112.01
5.4.30.0110.04112.00
5.4.20.0120.03912.00
5.4.10.0120.04212.00
5.4.00.0120.04211.50
5.3.270.0110.04712.73
5.3.260.0150.06012.72
5.3.250.0130.04512.72
5.3.240.0130.04312.72
5.3.230.0100.04212.71
5.3.220.0140.05312.68
5.3.210.0140.04512.68
5.3.200.0220.05912.68
5.3.190.0100.04312.68
5.3.180.0120.04512.67
5.3.170.0120.03912.67
5.3.160.0110.04012.67
5.3.150.0110.04712.68
5.3.140.0120.04712.66
5.3.130.0130.04712.66
5.3.120.0150.03812.65
5.3.110.0120.04212.66
5.3.100.0120.04712.12
5.3.90.0120.04012.10
5.3.80.0140.03912.08
5.3.70.0090.04212.09
5.3.60.0190.06612.07
5.3.50.0090.04412.01
5.3.40.0120.04112.02
5.3.30.0120.03911.98
5.3.20.0200.06011.76
5.3.10.0080.04311.72
5.3.00.0090.04211.71

preferences:
132.88 ms | 1394 KiB | 7 Q