3v4l.org

run code in 300+ PHP versions simultaneously
<?php // from your file $xml = ' <main> <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> <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> </main> '; $xmldoc = new DOMDocument(); //$xmldoc->load('yourFile.html'); $xmldoc->loadXML($xml); $xpath = new Domxpath($xmldoc); $query = "//div[@class='DetailsPanel']/label"; foreach($xpath->query($query) as $node){ $string = $node->NextSibling->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)
8.3.60.0070.01118.68
8.3.50.0060.01122.24
8.3.40.0150.00019.17
8.3.30.0090.00919.47
8.3.20.0000.00820.71
8.3.10.0040.00422.43
8.3.00.0040.00422.85
8.2.180.0180.00317.38
8.2.170.0070.01422.96
8.2.160.0040.01119.50
8.2.150.0090.00024.18
8.2.140.0130.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00420.26
8.2.110.0160.00622.76
8.2.100.0130.00018.16
8.2.90.0050.00319.42
8.2.80.0040.00417.97
8.2.70.0030.00618.00
8.2.60.0070.00418.18
8.2.50.0050.00318.10
8.2.40.0040.00418.53
8.2.30.0000.00718.48
8.2.20.0050.00317.96
8.2.10.0040.00418.10
8.2.00.0050.00318.18
8.1.280.0140.00725.92
8.1.270.0060.00322.57
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00024.23
8.1.230.0070.00318.08
8.1.220.0060.00318.02
8.1.210.0000.00918.77
8.1.200.0050.00517.60
8.1.190.0080.00017.48
8.1.180.0090.00018.10
8.1.170.0040.00419.00
8.1.160.0030.00522.44
8.1.150.0000.00718.96
8.1.140.0070.00317.81
8.1.130.0070.00018.02
8.1.120.0070.00017.73
8.1.110.0090.00017.92
8.1.100.0000.00717.65
8.1.90.0060.00317.85
8.1.80.0070.00017.82
8.1.70.0040.00417.89
8.1.60.0000.00817.84
8.1.50.0000.00817.71
8.1.40.0000.00817.77
8.1.30.0050.00318.10
8.1.20.0040.00417.85
8.1.10.0060.00317.98
8.1.00.0000.00817.96
8.0.300.0060.00318.77
8.0.290.0000.00717.00
8.0.280.0070.00018.82
8.0.270.0080.00017.55
8.0.260.0000.00817.21
8.0.250.0030.00317.24
8.0.240.0000.00717.45
8.0.230.0060.00317.25
8.0.220.0080.00017.38
8.0.210.0030.00317.18
8.0.200.0030.00317.24
8.0.190.0030.00517.44
8.0.180.0040.00417.16
8.0.170.0000.00717.39
8.0.160.0000.00717.08
8.0.150.0000.00717.32
8.0.140.0000.00817.33
8.0.130.0030.00313.82
8.0.120.0000.00817.33
8.0.110.0000.00817.20
8.0.100.0040.00417.36
8.0.90.0050.00317.16
8.0.80.0100.00617.19
8.0.70.0040.00417.28
8.0.60.0000.00717.28
8.0.50.0040.00417.19
8.0.30.0090.01017.36
8.0.20.0130.00617.70
8.0.10.0070.00017.46
8.0.00.0140.00517.23
7.4.330.0000.00615.36
7.4.320.0000.00616.82
7.4.300.0070.00016.90
7.4.290.0040.00416.80
7.4.280.0040.00416.86
7.4.270.0030.00316.90
7.4.260.0030.00616.86
7.4.250.0030.00616.86
7.4.240.0020.00516.85
7.4.230.0000.00716.77
7.4.220.0100.00716.93
7.4.210.0050.01116.94
7.4.200.0040.00416.78
7.4.190.0080.00016.79
7.4.160.0100.00716.97
7.4.150.0030.01317.40
7.4.140.0100.01417.86
7.4.130.0130.00616.74
7.4.120.0130.00416.84
7.4.110.0130.00316.82
7.4.100.0060.01216.78
7.4.90.0040.01416.90
7.4.80.0090.01319.39
7.4.70.0100.00716.79
7.4.60.0030.01316.71
7.4.50.0000.00916.60
7.4.40.0000.01522.77
7.4.30.0100.00716.89
7.4.00.0110.00315.09
7.3.330.0000.00513.45
7.3.320.0000.00613.50
7.3.310.0000.00716.68
7.3.300.0000.00716.64
7.3.290.0050.01016.77
7.3.280.0090.01016.65
7.3.270.0060.01317.40
7.3.260.0050.01316.73
7.3.250.0060.01116.78
7.3.240.0240.00016.86
7.3.230.0110.00716.58
7.3.210.0090.00916.82
7.3.200.0100.00719.39
7.3.190.0160.00316.88
7.3.180.0090.01216.76
7.3.170.0100.00716.77
7.3.160.0090.00816.86
7.3.120.0040.01415.07
7.2.330.0140.00417.03
7.2.320.0070.01016.72
7.2.310.0140.00316.86
7.2.300.0130.01017.07
7.2.290.0130.00317.03
7.1.70.0070.00317.56
7.1.60.0100.01419.82
7.1.50.0070.01517.25
7.1.00.0070.07022.67
7.0.200.0030.00616.89
7.0.140.0070.06322.25
7.0.60.0100.05720.16
7.0.50.0030.05718.07
7.0.40.0000.05020.49
7.0.30.0300.06020.39
7.0.20.0200.07720.25
7.0.10.0230.06320.42
7.0.00.0030.09020.34
5.6.280.0070.08721.16
5.6.210.0130.06320.65
5.6.200.0130.08018.41
5.6.190.0100.07720.51
5.6.180.4100.04320.51
5.6.170.0330.07320.76
5.6.160.0100.08320.59
5.6.150.0230.03318.43
5.6.140.0070.06018.40
5.6.130.0070.05318.30
5.6.120.0130.05021.20
5.6.110.0030.04021.12
5.6.100.0170.06321.18
5.6.90.0030.09321.15
5.6.80.0130.06720.55
5.6.70.0230.02720.65
5.5.350.0030.07720.74
5.5.340.0000.04318.17
5.5.330.0070.06320.68
5.5.320.0200.08320.55
5.5.310.0130.07320.39
5.5.300.0030.04018.12
5.5.290.0100.06018.13
5.5.280.0100.08020.96
5.5.270.0030.04720.98
5.5.260.0100.08020.91
5.5.250.0030.04020.80
5.5.240.0100.07720.20
5.4.450.0130.05719.78
5.4.440.0670.06719.80
5.4.430.0070.06019.62
5.4.420.0170.05019.74
5.4.410.0170.04719.80
5.4.400.0970.00018.95
5.4.390.0870.00018.89
5.4.380.0230.06018.90
5.4.370.0400.05318.67
5.4.360.0370.04718.91
5.4.350.0270.05018.63
5.4.340.0200.06318.67
5.4.320.0070.03512.76
5.4.310.0060.03812.75
5.4.300.0060.03612.76
5.4.290.0090.03912.75
5.4.280.0070.03412.65
5.4.270.0090.03312.65
5.4.260.0170.07019.21
5.4.250.0100.05718.97
5.4.240.0170.07319.32
5.4.230.0130.04719.21
5.4.220.0130.05019.32
5.4.210.0130.06018.98
5.4.200.0100.05019.32
5.4.190.0070.08018.77
5.4.180.0230.07018.77
5.4.170.0200.03718.93
5.4.160.0100.05018.93
5.4.150.0000.06018.75
5.4.140.0000.05716.48
5.4.130.0130.04316.66
5.4.120.0270.06316.44
5.4.110.0100.06716.68
5.4.100.0130.04316.69
5.4.90.0100.07016.39
5.4.80.0100.05316.57
5.4.70.0070.07716.28
5.4.60.0000.05316.36
5.4.50.0000.06016.36
5.4.40.0070.05016.36
5.4.30.0170.04316.70
5.4.20.0000.08016.45
5.4.10.0070.05716.67
5.4.00.0230.03315.92
5.3.290.0030.04113.02
5.3.280.0130.06014.68
5.3.270.0170.04314.79
5.3.260.0070.05714.65
5.3.250.0030.05714.79
5.3.240.0100.04714.67
5.3.230.0070.05014.71
5.3.220.0030.05014.65
5.3.210.0070.06014.82
5.3.200.0100.05714.64
5.3.190.0130.07314.77
5.3.180.0030.05014.68
5.3.170.0070.06014.88
5.3.160.0100.04714.66
5.3.150.0070.05014.79
5.3.140.0070.05314.77
5.3.130.0130.04714.63
5.3.120.0070.05314.61
5.3.110.0030.07714.61
5.3.100.0070.05014.10
5.3.90.0100.06714.13
5.3.80.0170.06014.13
5.3.70.0070.05014.33
5.3.60.0070.05714.06
5.3.50.0070.05014.04
5.3.40.0130.04714.04
5.3.30.0030.05713.99
5.3.20.0300.04313.79
5.3.10.0000.05313.81
5.3.00.0070.05013.80
5.2.170.0100.04711.26
5.2.160.0100.04011.30
5.2.150.0070.04711.41
5.2.140.0030.06011.26
5.2.130.0070.06011.25
5.2.120.0070.03711.18
5.2.110.0230.02011.38
5.2.100.0000.04311.10
5.2.90.0030.04311.20
5.2.80.0000.04311.21
5.2.70.0130.03311.27
5.2.60.0130.03011.19
5.2.50.0070.03711.17
5.2.40.0030.04011.11
5.2.30.0030.04011.18
5.2.20.0100.05011.05
5.2.10.0030.04011.08
5.2.00.0030.04010.82
5.1.60.0030.04010.30
5.1.50.0030.03710.14
5.1.40.0000.04010.12
5.1.30.0070.03310.56
5.1.20.0070.03310.46
5.1.10.0100.03010.28
5.1.00.0000.03710.31
5.0.50.0070.0238.76
5.0.40.0130.0178.52
5.0.30.0000.0578.43
5.0.20.0030.0278.38
5.0.10.0000.0308.30
5.0.00.0000.0438.54
4.4.90.0000.0236.55
4.4.80.0070.0176.55
4.4.70.0030.0306.55
4.4.60.0030.0206.55
4.4.50.0000.0236.55
4.4.40.0030.0336.55
4.4.30.0000.0376.55
4.4.20.0030.0206.55
4.4.10.0000.0236.55
4.4.00.0070.0306.55
4.3.110.0030.0306.55
4.3.100.0070.0206.55
4.3.90.0030.0236.55
4.3.80.0030.0336.55
4.3.70.0000.0236.55
4.3.60.0030.0206.55
4.3.50.0030.0236.55
4.3.40.0000.0436.55
4.3.30.0000.0236.55
4.3.20.0030.0206.55
4.3.10.0030.0206.55
4.3.00.0070.0239.22

preferences:
40.49 ms | 400 KiB | 5 Q