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->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.0110.00418.52
8.3.50.0070.00921.27
8.3.40.0090.00619.01
8.3.30.0110.00319.48
8.3.20.0050.00320.63
8.3.10.0000.00822.43
8.3.00.0000.00822.77
8.2.180.0080.00818.91
8.2.170.0070.01422.96
8.2.160.0110.01119.50
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.01126.16
8.2.120.0040.00419.73
8.2.110.0090.00022.48
8.2.100.0060.00619.95
8.2.90.0000.00819.52
8.2.80.0040.00418.30
8.2.70.0050.00317.75
8.2.60.0080.00018.05
8.2.50.0030.00518.07
8.2.40.0080.00018.72
8.2.30.0040.00418.33
8.2.20.0000.00818.12
8.2.10.0000.00718.02
8.2.00.0000.00819.78
8.1.280.0140.00725.92
8.1.270.0030.00522.52
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0100.00324.30
8.1.230.0000.01219.47
8.1.220.0000.00818.04
8.1.210.0030.00518.77
8.1.200.0030.00617.50
8.1.190.0030.00517.78
8.1.180.0030.00619.04
8.1.170.0050.00318.95
8.1.160.0000.00722.29
8.1.150.0000.00718.84
8.1.140.0040.00417.76
8.1.130.0000.00718.09
8.1.120.0000.00717.82
8.1.110.0040.00417.92
8.1.100.0020.00517.64
8.1.90.0000.00717.90
8.1.80.0000.00717.87
8.1.70.0030.00317.68
8.1.60.0030.00518.04
8.1.50.0030.00517.73
8.1.40.0040.00417.94
8.1.30.0040.00417.84
8.1.20.0000.00817.80
8.1.10.0000.00717.84
8.1.00.0030.00517.96
8.0.300.0070.00018.77
8.0.290.0040.00417.55
8.0.280.0030.00518.85
8.0.270.0000.00717.65
8.0.260.0070.00017.14
8.0.250.0070.00017.18
8.0.240.0000.00717.15
8.0.230.0040.00417.41
8.0.220.0030.00317.25
8.0.210.0050.00317.06
8.0.200.0060.00017.29
8.0.190.0040.00417.14
8.0.180.0070.00017.32
8.0.170.0000.00817.28
8.0.160.0050.00517.31
8.0.150.0040.00417.30
8.0.140.0040.00417.04
8.0.130.0030.00313.67
8.0.120.0030.00617.03
8.0.110.0000.00717.26
8.0.100.0040.00417.19
8.0.90.0040.00417.23
8.0.80.0120.00317.04
8.0.70.0060.00317.21
8.0.60.0080.00017.16
8.0.50.0050.00317.27
8.0.30.0090.00917.50
8.0.20.0130.01017.49
8.0.10.0000.00817.27
8.0.00.0110.01117.15
7.4.330.0000.00515.00
7.4.320.0030.00317.01
7.4.300.0030.00316.89
7.4.290.0000.00716.92
7.4.280.0100.00516.89
7.4.270.0000.00716.88
7.4.260.0050.00516.90
7.4.250.0000.00716.80
7.4.240.0040.00416.87
7.4.230.0040.00416.88
7.4.220.0100.01716.79
7.4.210.0040.01116.85
7.4.200.0000.00716.78
7.4.190.0040.00416.81
7.4.160.0130.01016.89
7.4.150.0130.00617.40
7.4.140.0080.01217.86
7.4.130.0120.00716.81
7.4.120.0090.01016.76
7.4.110.0100.00616.78
7.4.100.0090.01516.91
7.4.90.0140.00616.85
7.4.80.0130.00419.39
7.4.70.0120.00916.84
7.4.60.0030.01317.00
7.4.50.0000.00816.81
7.4.40.0060.01222.77
7.4.30.0070.01416.77
7.4.00.0000.01715.09
7.3.330.0020.00213.25
7.3.320.0060.00013.50
7.3.310.0030.00316.43
7.3.300.0000.00616.57
7.3.290.0040.01116.54
7.3.280.0100.00716.67
7.3.270.0100.00717.40
7.3.260.0090.00916.71
7.3.250.0080.01016.90
7.3.240.0030.01816.66
7.3.230.0120.00416.63
7.3.210.0090.00816.60
7.3.200.0070.01419.39
7.3.190.0120.01216.82
7.3.180.0100.00716.68
7.3.170.0070.01016.96
7.3.160.0130.00916.65
7.3.120.0000.00814.96
7.2.330.0090.00916.72
7.2.320.0080.01517.07
7.2.310.0100.01317.12
7.2.300.0100.00717.08
7.2.290.0130.00316.86
7.2.00.0030.00919.68
7.1.100.0070.00318.43
7.1.70.0110.00017.29
7.1.60.0060.01819.82
7.1.50.0170.00717.30
7.1.00.0030.07722.75
7.0.200.0070.00017.14
7.0.140.0000.07722.18
7.0.60.0170.04720.12
7.0.50.0070.06718.04
7.0.40.0100.04020.21
7.0.30.0270.04020.50
7.0.20.0200.07320.40
7.0.10.0100.08720.40
7.0.00.0100.07320.32
5.6.210.0100.07720.75
5.6.200.0070.04718.28
5.6.190.0130.08020.85
5.6.180.0270.06020.49
5.6.170.0270.05720.70
5.6.160.0000.04320.67
5.6.150.0000.04718.27
5.6.140.0030.04018.37
5.6.130.0130.08318.33
5.6.120.0100.06021.13
5.6.110.0030.04321.20
5.6.100.0070.08321.16
5.6.90.0030.06021.30
5.6.80.0070.06320.57
5.6.70.4300.04020.66
5.5.350.0170.04320.50
5.5.340.0070.08718.18
5.5.330.0030.04320.43
5.5.320.0330.04720.41
5.5.310.0230.07020.57
5.5.300.0100.07318.09
5.5.290.0070.05018.18
5.5.280.0170.07021.17
5.5.270.0100.05720.95
5.5.260.0100.08320.98
5.5.250.0200.08020.88
5.5.240.0330.05720.39
5.4.450.0700.07019.38
5.4.440.0500.07019.74
5.4.430.0170.04719.53
5.4.420.0100.06319.58
5.4.410.0100.06319.16
5.4.400.0070.05718.97
5.4.390.0070.05718.90
5.4.380.0100.05318.86
5.4.370.0400.04018.81
5.4.360.0400.05018.85
5.4.350.0230.06318.63
5.4.340.0200.06018.88
5.4.320.0050.04412.76
5.4.310.0080.03512.75
5.4.300.0080.03512.76
5.4.290.0090.04312.75
5.4.280.0050.03512.65
5.4.270.0050.03712.65
5.4.260.0000.05719.16
5.4.250.0070.05018.84
5.4.240.0100.07719.23
5.4.230.0030.05718.93
5.4.220.0000.06319.18
5.4.210.0030.07719.09
5.4.200.0130.04718.82
5.4.190.0100.05018.82
5.4.180.0100.05018.82
5.4.170.0100.06718.95
5.4.160.0030.08319.14
5.4.150.0030.06019.30
5.4.140.0100.04716.47
5.4.130.0070.04716.54
5.4.120.0030.07716.45
5.4.110.0030.05716.78
5.4.100.0100.04316.69
5.4.90.0030.06316.45
5.4.80.0030.05316.41
5.4.70.0100.05716.66
5.4.60.0130.04316.27
5.4.50.0100.05316.43
5.4.40.0070.05316.70
5.4.30.0030.05716.53
5.4.20.0200.05316.53
5.4.10.0100.04716.53
5.4.00.0130.05716.19
5.3.290.0080.03813.02
5.3.280.0030.05314.69
5.3.270.0130.04714.87
5.3.260.0070.05014.83
5.3.250.0100.05014.71
5.3.240.0000.05714.91
5.3.230.0100.04714.69
5.3.220.0170.05314.63
5.3.210.0030.06014.71
5.3.200.0030.05314.67
5.3.190.0070.07314.65
5.3.180.0070.07314.78
5.3.170.0170.04014.62
5.3.160.0070.05014.48
5.3.150.0000.06014.74
5.3.140.0070.07314.63
5.3.130.0100.05314.60
5.3.120.0030.05714.75
5.3.110.0030.05714.47
5.3.100.0130.04714.14
5.3.90.0030.06314.20
5.3.80.0070.04714.05
5.3.70.0030.05014.18
5.3.60.0130.04314.09
5.3.50.0070.05014.12
5.3.40.0070.07014.04
5.3.30.0130.04714.23
5.3.20.0070.05013.84
5.3.10.0130.05013.79
5.3.00.0100.05013.81
5.2.170.0030.04311.45
5.2.160.0100.05011.42
5.2.150.0030.04311.41
5.2.140.0100.03711.32
5.2.130.0100.03711.20
5.2.120.0070.03711.35
5.2.110.0030.04311.08
5.2.100.0070.03711.21
5.2.90.0070.03711.34
5.2.80.0000.05011.16
5.2.70.0070.05311.20
5.2.60.0030.04311.18
5.2.50.0070.04311.29
5.2.40.0000.05711.15
5.2.30.0170.04310.95
5.2.20.0100.04011.22
5.2.10.0070.04011.09
5.2.00.0200.04310.70
5.1.60.0030.0509.98
5.1.50.0070.03310.21
5.1.40.0070.04010.11
5.1.30.0070.03310.50
5.1.20.0100.05010.59
5.1.10.0100.03010.20
5.1.00.0030.03710.22
5.0.50.0070.0408.53
5.0.40.0030.0278.60
5.0.30.0000.0438.36
5.0.20.0030.0278.48
5.0.10.0070.0238.31
5.0.00.0100.0508.29
4.4.90.0030.0206.88
4.4.80.0070.0206.88
4.4.70.0200.0136.88
4.4.60.0000.0336.88
4.4.50.0030.0306.88
4.4.40.0030.0476.88
4.4.30.0000.0276.88
4.4.20.0030.0336.88
4.4.10.0000.0376.88
4.4.00.0030.0336.88
4.3.110.0000.0236.88
4.3.100.0070.0236.88
4.3.90.0030.0206.88
4.3.80.0030.0336.88
4.3.70.0030.0276.88
4.3.60.0070.0176.88
4.3.50.0030.0206.88
4.3.40.0000.0336.88
4.3.30.0030.0206.88
4.3.20.0000.0306.88
4.3.10.0000.0236.88
4.3.00.0270.0206.75

preferences:
58.37 ms | 401 KiB | 5 Q