3v4l.org

run code in 300+ PHP versions simultaneously
<?php // from your file $xml = ' <div class="DetailsPanel"> <label class="ListLabel left">Location</label> <span id="location" class="ListDetail left" title="London, UK">London, UK</span> <label class="ListLabel left">Price</label> <span id="price" class="ListDetail left" title="£5000">£5000</span> <label class="ListLabel left">Sector</label> <span class="ListDetail left"> <a href="/">IT</a> <a href="/">ICT</a> </span> </div> '; $xmldoc = new DOMDocument(); //$xmldoc->load('yourFile.html'); $xmldoc->loadXML($xml); $xpath = new Domxpath($xmldoc); $query = "//div; foreach($xpath->query($query) as $node){ $string = $node->nodeValue; echo $string . '|'; } ?>

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.260.0170.04318.78
5.4.250.0130.04718.66
5.4.240.0070.05718.87
5.4.230.0070.05018.87
5.4.220.0070.05718.67
5.4.210.0130.04718.99
5.4.200.0030.05318.86
5.4.190.0070.05018.82
5.4.180.0070.06318.88
5.4.170.0100.05318.68
5.4.160.0070.07018.76
5.4.150.0070.06318.70
5.4.140.0100.05016.46
5.4.130.0070.06016.20
5.4.120.0070.04716.23
5.4.110.0200.03716.34
5.4.100.0200.03716.48
5.4.90.0000.06016.25
5.4.80.0070.04716.16
5.4.70.0070.04716.16
5.4.60.0030.05316.39
5.4.50.0070.04716.46
5.4.40.0070.05316.21
5.4.30.0130.06316.13
5.4.20.0030.05016.14
5.4.10.0100.05016.18
5.4.00.0170.05015.88
5.3.280.0170.04014.47
5.3.270.0100.05014.46
5.3.260.0200.05014.50
5.3.250.0170.04314.53
5.3.240.0100.05314.62
5.3.230.0070.05314.69
5.3.220.0000.06314.57
5.3.210.0100.05014.73
5.3.200.0100.04714.41
5.3.190.0100.05014.36
5.3.180.0100.04714.34
5.3.170.0030.05314.45
5.3.160.0100.04714.58
5.3.150.0170.05014.57
5.3.140.0100.06014.57
5.3.130.0030.05714.42
5.3.120.0100.08014.44
5.3.110.0070.06314.55
5.3.100.0070.05014.07
5.3.90.0170.05314.04
5.3.80.0070.04714.07
5.3.70.0100.04713.98
5.3.60.0130.04314.09
5.3.50.0000.05313.96
5.3.40.0070.05713.79
5.3.30.0170.03713.80
5.3.20.0100.06313.54
5.3.10.0070.04713.52
5.3.00.0030.05313.64
5.2.170.0200.05011.07
5.2.160.0100.03711.15
5.2.150.0070.04011.24
5.2.140.0100.05010.98
5.2.130.0000.04310.99
5.2.120.0070.04011.13
5.2.110.0100.03711.02
5.2.100.0070.05711.12
5.2.90.0070.04011.10
5.2.80.0070.04311.10
5.2.70.0070.04011.09
5.2.60.0070.04011.08
5.2.50.0100.03711.14
5.2.40.0070.04311.11
5.2.30.0030.04010.89
5.2.20.0100.05310.89
5.2.10.0030.04710.80
5.2.00.0100.03710.64
5.1.60.0070.03710.24
5.1.50.0030.03310.06
5.1.40.0000.0539.84
5.1.30.0030.03710.41
5.1.20.0030.03710.34
5.1.10.0070.03710.09
5.1.00.0100.0439.92
5.0.50.0100.0238.48
5.0.40.0030.0378.47
5.0.30.0100.0538.46
5.0.20.0070.0238.28
5.0.10.0070.0238.16
5.0.00.0000.0608.22
4.4.90.0070.0176.88
4.4.80.0070.0206.88
4.4.70.0070.0176.88
4.4.60.0000.0236.88
4.4.50.0000.0236.88
4.4.40.0030.0336.88
4.4.30.0000.0236.88
4.4.20.0030.0206.88
4.4.10.0070.0206.88
4.4.00.0000.0376.88
4.3.110.0000.0336.88
4.3.100.0030.0236.88
4.3.90.0030.0206.88
4.3.80.0030.0436.88
4.3.70.0030.0306.88
4.3.60.0100.0136.88
4.3.50.0030.0336.88
4.3.40.0100.0406.88
4.3.30.0030.0236.88
4.3.20.0070.0236.88
4.3.10.0030.0206.88
4.3.00.0030.0209.21

preferences:
139.25 ms | 1394 KiB | 7 Q