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']"; 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.0140.00718.56
8.3.50.0140.00522.06
8.3.40.0090.00618.94
8.3.30.0150.00319.46
8.3.20.0000.00820.45
8.3.10.0040.00422.20
8.3.00.0030.00622.59
8.2.180.0140.00416.88
8.2.170.0140.00722.96
8.2.160.0070.00719.63
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.86
8.2.110.0040.00422.61
8.2.100.0040.00718.16
8.2.90.0000.00819.30
8.2.80.0000.00818.18
8.2.70.0000.00918.00
8.2.60.0030.00518.18
8.2.50.0030.00518.07
8.2.40.0000.00818.53
8.2.30.0030.00618.34
8.2.20.0040.00417.85
8.2.10.0040.00417.95
8.2.00.0040.00417.93
8.1.280.0170.00325.92
8.1.270.0060.00322.55
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0150.00324.05
8.1.230.0090.00324.07
8.1.220.0080.00018.05
8.1.210.0050.00318.77
8.1.200.0090.00017.72
8.1.190.0030.00617.64
8.1.180.0030.00518.86
8.1.170.0080.00018.73
8.1.160.0000.00822.39
8.1.150.0070.00018.95
8.1.140.0080.00017.84
8.1.130.0000.00718.14
8.1.120.0040.00417.91
8.1.110.0030.00517.93
8.1.100.0040.00417.93
8.1.90.0000.00717.91
8.1.80.0070.00017.73
8.1.70.0070.00017.67
8.1.60.0000.00818.02
8.1.50.0030.00617.95
8.1.40.0000.00817.96
8.1.30.0000.00818.04
8.1.20.0030.00517.96
8.1.10.0040.00417.77
8.1.00.0040.00417.75
8.0.300.0040.00418.77
8.0.290.0020.00517.41
8.0.280.0000.00718.88
8.0.270.0030.00517.50
8.0.260.0030.00317.12
8.0.250.0070.00017.09
8.0.240.0000.00717.19
8.0.230.0040.00717.17
8.0.220.0000.00717.17
8.0.210.0030.00317.29
8.0.200.0040.00417.17
8.0.190.0070.00017.35
8.0.180.0070.00017.30
8.0.170.0070.00017.29
8.0.160.0040.00417.05
8.0.150.0040.00317.08
8.0.140.0000.00717.24
8.0.130.0000.00613.57
8.0.120.0000.00817.23
8.0.110.0070.00017.30
8.0.100.0040.00417.16
8.0.90.0020.00517.14
8.0.80.0070.01017.22
8.0.70.0050.00317.23
8.0.60.0070.00017.20
8.0.50.0040.00417.22
8.0.30.0070.01217.37
8.0.20.0100.01017.45
8.0.10.0000.00717.36
8.0.00.0120.01017.10
7.4.330.0030.00315.47
7.4.320.0070.00016.91
7.4.300.0060.00017.00
7.4.290.0040.00416.80
7.4.280.0050.00316.87
7.4.270.0030.00316.93
7.4.260.0040.00416.88
7.4.250.0080.00016.67
7.4.240.0020.00517.00
7.4.230.0030.00316.78
7.4.220.0160.00916.99
7.4.210.0110.00616.92
7.4.200.0080.00016.81
7.4.190.0040.00416.86
7.4.160.0080.00816.93
7.4.150.0040.01417.40
7.4.140.0240.01117.86
7.4.130.0110.00716.78
7.4.120.0080.01016.87
7.4.110.0060.01016.75
7.4.100.0030.01316.68
7.4.90.0070.01116.84
7.4.80.0120.00619.39
7.4.70.0140.00716.87
7.4.60.0070.01016.85
7.4.50.0030.00616.63
7.4.40.0070.00722.77
7.4.30.0050.01116.75
7.4.00.0040.01214.99
7.3.330.0050.00013.56
7.3.320.0000.00513.55
7.3.310.0040.00416.56
7.3.300.0070.00016.53
7.3.290.0110.00816.60
7.3.280.0050.01316.56
7.3.270.0090.00917.40
7.3.260.0120.01216.57
7.3.250.0060.01116.79
7.3.240.0090.00916.76
7.3.230.0110.00816.76
7.3.210.0120.00916.75
7.3.200.0080.00819.39
7.3.190.0110.01116.93
7.3.180.0070.01016.40
7.3.170.0180.00316.62
7.3.160.0090.00616.64
7.3.120.0080.00514.97
7.3.110.0070.01315.08
7.3.100.0080.00414.67
7.3.90.0070.00715.11
7.3.80.0030.01314.92
7.3.70.0040.01215.05
7.3.60.0090.00615.20
7.3.50.0070.01015.20
7.3.40.0070.00714.86
7.3.30.0030.01314.75
7.3.20.0080.00816.91
7.3.10.0110.00316.73
7.3.00.0100.00916.49
7.2.330.0120.00617.20
7.2.320.0070.01017.07
7.2.310.0080.00817.06
7.2.300.0120.00917.23
7.2.290.0030.01316.78
7.2.250.0070.01115.29
7.2.240.0060.00915.05
7.2.230.0040.01214.93
7.2.220.0030.01315.00
7.2.210.0150.00315.14
7.2.200.0030.01015.02
7.2.190.0130.00315.27
7.2.180.0030.01315.38
7.2.170.0140.00015.07
7.1.330.0040.01115.96
7.1.320.0030.00615.86
7.1.310.0000.01516.03
7.1.300.0060.00915.63
7.1.290.0100.00615.72
7.1.280.0000.01615.93
7.1.270.0090.00915.90
7.1.260.0090.00915.74
7.1.70.0000.00817.44
7.1.60.0130.01319.82
7.1.50.0100.01316.97
7.1.00.0000.08022.58
7.0.200.0050.00216.94
7.0.140.0030.07322.19
7.0.60.0100.06020.21
7.0.50.0070.06017.95
7.0.40.0130.07720.15
7.0.30.0230.05320.35
7.0.20.0170.06020.34
7.0.10.0330.07020.24
7.0.00.0130.07320.37
5.6.280.0000.07721.33
5.6.210.0030.07020.69
5.6.200.0170.07718.43
5.6.190.0130.06020.55
5.6.180.3830.04020.66
5.6.170.0200.05020.65
5.6.160.0130.08020.75
5.6.150.0030.06318.33
5.6.140.0130.07018.34
5.6.130.0130.07718.36
5.6.120.0100.07321.25
5.6.110.0170.06721.28
5.6.100.0030.06321.25
5.6.90.0170.08021.16
5.6.80.0100.06020.67
5.6.70.0200.03720.69
5.5.350.0030.08020.64
5.5.340.0030.04318.12
5.5.330.0130.07720.39
5.5.320.0170.04320.46
5.5.310.0200.09020.55
5.5.300.0270.06018.20
5.5.290.0070.05718.14
5.5.280.0130.08021.06
5.5.270.0030.05321.16
5.5.260.0070.07320.91
5.5.250.0070.03720.80
5.5.240.0070.06720.48
5.4.450.0500.06719.64
5.4.440.0170.05019.70
5.4.430.0030.06019.46
5.4.420.0230.04019.74
5.4.410.0070.05719.47
5.4.400.0800.00018.95
5.4.390.0830.00018.79
5.4.380.0270.05318.78
5.4.370.0330.05318.79
5.4.360.0430.03718.95
5.4.350.0270.05318.86
5.4.340.0300.05718.84
5.4.320.0100.03712.76
5.4.310.0040.04912.75
5.4.300.0070.03512.75
5.4.290.0060.03712.76
5.4.280.0080.03612.65
5.4.270.0050.03712.65
5.4.260.0070.07018.93
5.4.250.0100.05718.96
5.4.240.0130.07018.94
5.4.230.0070.05719.04
5.4.220.0100.07319.21
5.4.210.0100.05318.78
5.4.200.0100.05318.78
5.4.190.0170.04719.21
5.4.180.0030.05718.94
5.4.170.0070.05318.98
5.4.160.0100.05018.84
5.4.150.0100.05719.20
5.4.140.0070.05716.79
5.4.130.0100.07316.46
5.4.120.0070.07316.68
5.4.110.0130.05016.57
5.4.100.0070.04716.70
5.4.90.0130.04316.44
5.4.80.0170.04016.46
5.4.70.0070.05016.54
5.4.60.0030.05316.57
5.4.50.0070.07016.66
5.4.40.0100.06016.43
5.4.30.0030.05016.66
5.4.20.0130.04016.26
5.4.10.0030.05316.35
5.4.00.0000.05315.95
5.3.290.0080.03713.02
5.3.280.0030.05714.67
5.3.270.0070.05714.70
5.3.260.0100.05014.70
5.3.250.0230.04714.74
5.3.240.0100.06314.79
5.3.230.0100.04714.71
5.3.220.0100.07314.77
5.3.210.0100.05014.78
5.3.200.0100.05314.63
5.3.190.0070.05314.80
5.3.180.0070.05714.74
5.3.170.0030.05314.88
5.3.160.0000.08014.49
5.3.150.0100.05014.63
5.3.140.0170.06714.87
5.3.130.0100.05714.63
5.3.120.0100.06014.75
5.3.110.0030.06014.61
5.3.100.0000.07714.26
5.3.90.0100.05014.11
5.3.80.0130.05314.19
5.3.70.0030.05314.11
5.3.60.0200.06014.05
5.3.50.0070.05014.12
5.3.40.0000.07314.05
5.3.30.0230.05713.99
5.3.20.0100.05713.87
5.3.10.0100.04313.82
5.3.00.0100.05313.84
5.2.170.0030.05711.32
5.2.160.0130.04011.34
5.2.150.0200.04711.31
5.2.140.0000.06311.36
5.2.130.0000.04311.41
5.2.120.0070.03711.18
5.2.110.0000.04311.25
5.2.100.0070.03711.19
5.2.90.0000.04311.37
5.2.80.0070.04011.26
5.2.70.0030.04311.26
5.2.60.0070.04011.36
5.2.50.0100.04311.14
5.2.40.0000.04311.12
5.2.30.0070.04710.96
5.2.20.0070.03711.13
5.2.10.0070.04010.97
5.2.00.0030.04310.95
5.1.60.0000.05310.00
5.1.50.0030.05010.13
5.1.40.0030.03310.22
5.1.30.0100.03010.50
5.1.20.0030.03710.50
5.1.10.0030.03710.31
5.1.00.0030.03310.19
5.0.50.0030.0278.88
5.0.40.0100.0208.74
5.0.30.0000.0438.43
5.0.20.0070.0238.30
5.0.10.0070.0238.46
5.0.00.0030.0408.45
4.4.90.0000.0336.80
4.4.80.0000.0206.80
4.4.70.0030.0306.80
4.4.60.0070.0176.80
4.4.50.0000.0236.80
4.4.40.0100.0336.80
4.4.30.0070.0236.80
4.4.20.0000.0336.80
4.4.10.0000.0306.80
4.4.00.0000.0336.80
4.3.110.0000.0236.80
4.3.100.0030.0206.80
4.3.90.0070.0176.80
4.3.80.0000.0376.80
4.3.70.0070.0206.80
4.3.60.0000.0306.80
4.3.50.0030.0206.80
4.3.40.0070.0436.80
4.3.30.0030.0206.80
4.3.20.0000.0236.80
4.3.10.0070.0176.80
4.3.00.0100.0239.22

preferences:
39.2 ms | 400 KiB | 5 Q