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->previousSibling->nodeValue; echo $string . '|'; echo "\n"; } ?>

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.0120.00617.25
8.3.50.0150.00522.20
8.3.40.0150.00019.04
8.3.30.0170.00019.46
8.3.20.0000.00720.67
8.3.10.0110.00023.75
8.3.00.0070.00320.69
8.2.180.0100.00718.81
8.2.170.0070.00722.96
8.2.160.0030.01720.50
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00322.74
8.2.110.0060.00322.75
8.2.100.0110.00418.22
8.2.90.0000.00819.39
8.2.80.0040.00418.17
8.2.70.0060.00617.87
8.2.60.0040.00418.28
8.2.50.0090.00018.07
8.2.40.0050.00518.34
8.2.30.0080.00018.47
8.2.20.0050.00318.08
8.2.10.0000.00718.06
8.2.00.0080.00018.21
8.1.280.0180.00425.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.95
8.1.230.0080.00419.48
8.1.220.0040.00418.02
8.1.210.0050.00318.77
8.1.200.0040.00817.50
8.1.190.0040.00417.78
8.1.180.0080.00018.10
8.1.170.0030.00518.74
8.1.160.0000.00822.51
8.1.150.0030.00519.05
8.1.140.0050.00217.80
8.1.130.0000.00718.13
8.1.120.0030.00317.91
8.1.110.0030.00617.91
8.1.100.0050.00217.75
8.1.90.0040.00417.69
8.1.80.0000.00717.88
8.1.70.0040.00417.71
8.1.60.0000.00917.87
8.1.50.0050.00317.75
8.1.40.0040.00417.97
8.1.30.0030.00618.07
8.1.20.0000.00718.07
8.1.10.0000.00817.81
8.1.00.0060.00317.98
8.0.300.0000.00718.77
8.0.290.0060.00317.30
8.0.280.0040.00418.80
8.0.270.0000.00717.69
8.0.260.0030.00317.25
8.0.250.0070.00017.19
8.0.240.0050.00217.12
8.0.230.0040.00417.21
8.0.220.0080.00017.30
8.0.210.0000.00717.34
8.0.200.0030.00517.14
8.0.190.0000.00717.35
8.0.180.0060.00317.11
8.0.170.0040.00417.30
8.0.160.0040.00417.29
8.0.150.0040.00417.05
8.0.140.0030.00517.28
8.0.130.0030.00313.63
8.0.120.0080.00017.06
8.0.110.0080.00017.18
8.0.100.0000.00717.07
8.0.90.0040.00417.16
8.0.80.0060.01017.21
8.0.70.0000.00717.30
8.0.60.0000.00717.13
8.0.50.0050.00317.20
8.0.30.0090.01217.47
8.0.20.0110.00617.58
8.0.10.0050.00217.35
8.0.00.0140.00717.25
7.4.330.0050.00015.47
7.4.320.0000.00616.89
7.4.300.0000.00616.93
7.4.290.0000.00716.89
7.4.280.0000.00716.88
7.4.270.0000.00816.81
7.4.260.0000.00716.89
7.4.250.0070.00016.93
7.4.240.0050.00216.95
7.4.230.0070.00016.81
7.4.220.0120.00616.97
7.4.210.0040.01216.98
7.4.200.0030.00316.89
7.4.190.0000.00816.82
7.4.160.0060.01817.02
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0090.00916.73
7.4.120.0110.00916.83
7.4.110.0060.01116.84
7.4.100.0040.01316.81
7.4.90.0100.00616.98
7.4.80.0110.00616.73
7.4.70.0130.00316.85
7.4.60.0030.01416.91
7.4.50.0040.00016.90
7.4.40.0030.01222.77
7.4.30.0090.00616.71
7.4.00.0090.00315.14
7.3.330.0050.00013.28
7.3.320.0000.00713.53
7.3.310.0000.00716.38
7.3.300.0000.00716.57
7.3.290.0060.01316.75
7.3.280.0080.01016.64
7.3.270.0110.00617.40
7.3.260.0060.01616.83
7.3.250.0050.01216.81
7.3.240.0100.00716.93
7.3.230.0060.00916.94
7.3.210.0130.00416.60
7.3.200.0000.01719.39
7.3.190.0100.00716.89
7.3.180.0060.00916.63
7.3.170.0060.00916.61
7.3.160.0110.00516.57
7.3.120.0060.00614.88
7.2.330.0130.00616.97
7.2.320.0030.01717.25
7.2.310.0120.01216.86
7.2.300.0130.00416.88
7.2.290.0130.00316.91
7.2.00.0070.00319.61
7.1.100.0000.01017.98
7.1.70.0000.00717.23
7.1.60.0070.01719.29
7.1.50.0070.01716.91
7.1.00.0000.08022.63
7.0.200.0040.00417.11
7.0.140.0030.07722.11
7.0.60.0100.03320.15
7.0.50.0030.04017.89
7.0.40.0100.05720.29
7.0.30.0230.04720.49
7.0.20.0330.07020.23
7.0.10.0270.03720.38
7.0.00.0100.07320.37
5.6.280.0030.07321.25
5.6.210.0100.08320.95
5.6.200.0100.06718.31
5.6.190.0130.08320.51
5.6.180.0030.04720.93
5.6.170.0300.08020.87
5.6.160.0100.07720.60
5.6.150.0100.05018.30
5.6.140.0000.05018.32
5.6.130.0030.04018.34
5.6.120.0200.07721.18
5.6.110.0070.08021.09
5.6.100.0130.07321.24
5.6.90.0130.06321.24
5.6.80.0100.07320.66
5.6.70.4470.03320.64
5.5.350.0070.04720.68
5.5.340.0000.08718.14
5.5.330.0030.04320.63
5.5.320.0130.07720.41
5.5.310.0200.04020.39
5.5.300.0200.05318.17
5.5.290.0070.03718.16
5.5.280.0030.08720.96
5.5.270.0130.07320.95
5.5.260.0030.05020.80
5.5.250.0130.05720.95
5.5.240.0030.08020.35
5.4.450.0330.03319.38
5.4.440.1270.06319.70
5.4.430.0130.05319.61
5.4.420.0130.05719.77
5.4.410.0930.07319.49
5.4.400.0900.06019.38
5.4.390.0530.06019.24
5.4.380.0200.05718.95
5.4.370.0100.05718.88
5.4.360.0130.05018.94
5.4.350.0130.08318.82
5.4.340.0130.05718.96
5.4.320.0060.03912.76
5.4.310.0080.04012.75
5.4.300.0080.04012.76
5.4.290.0040.04012.75
5.4.280.0090.03512.65
5.4.270.0100.03512.65
5.4.260.0060.03712.62
5.4.250.0050.04012.62
5.4.240.0070.03612.63
5.4.230.0040.04112.61
5.4.220.0090.03612.61
5.4.210.0100.03212.62
5.4.200.0040.04012.62
5.4.190.0060.04012.61
5.4.180.0050.04112.61
5.4.170.0070.04912.63
5.4.160.0080.03712.62
5.4.150.0100.03612.62
5.4.140.0090.04412.30
5.4.130.0080.03512.29
5.4.120.0080.03412.24
5.4.110.0070.03512.24
5.4.100.0030.03912.24
5.4.90.0060.04012.24
5.4.80.0060.04512.24
5.4.70.0070.03412.24
5.4.60.0060.03512.24
5.4.50.0050.03812.24
5.4.40.0050.04612.23
5.4.30.0040.03812.22
5.4.20.0060.03512.22
5.4.10.0090.03312.22
5.4.00.0060.04611.71
5.3.290.0110.04713.02
5.3.280.0110.03712.91
5.3.270.0100.05212.92
5.3.260.0070.04412.92
5.3.250.0060.03712.92
5.3.240.0060.03712.93
5.3.230.0030.04012.91
5.3.220.0090.03312.88
5.3.210.0060.03712.89
5.3.200.0030.03812.89
5.3.190.0050.03812.88
5.3.180.0060.03612.88
5.3.170.0020.04012.88
5.3.160.0030.03912.88
5.3.150.0040.03812.88
5.3.140.0030.03912.87
5.3.130.0050.03912.86
5.3.120.0070.03812.86
5.3.110.0090.03912.86
5.3.100.0040.04012.36
5.3.90.0070.03512.34
5.3.80.0050.04512.32
5.3.70.0050.03812.33
5.3.60.0050.03712.30
5.3.50.0060.03612.26
5.3.40.0090.03412.26
5.3.30.0040.03812.22
5.3.20.0030.03812.00
5.3.10.0060.03511.96
5.3.00.0070.03411.95
5.2.170.0060.0299.44
5.2.160.0030.0309.45
5.2.150.0040.0329.45
5.2.140.0090.0269.44
5.2.130.0020.0349.40
5.2.120.0070.0299.40
5.2.110.0030.0339.40
5.2.100.0020.0329.41
5.2.90.0030.0439.41
5.2.80.0030.0319.39
5.2.70.0080.0369.40
5.2.60.0070.0289.36
5.2.50.0050.0299.32
5.2.40.0040.0309.30
5.2.30.0040.0319.27
5.2.20.0060.0289.26
5.2.10.0040.0309.19
5.2.00.0050.0289.05
5.1.60.0030.0258.33
5.1.50.0040.0268.33
5.1.40.0060.0258.32
5.1.30.0070.0248.66
5.1.20.0020.0298.68
5.1.10.0040.0278.41
5.1.00.0060.0238.41
5.0.50.0070.0226.87
5.0.40.0060.0206.74
5.0.30.0030.0346.55
5.0.20.0030.0196.53
5.0.10.0040.0196.50
5.0.00.0020.0326.50
4.4.90.0030.0154.78
4.4.80.0020.0154.75
4.4.70.0030.0154.75
4.4.60.0040.0144.76
4.4.50.0010.0174.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0010.0174.85
4.4.10.0030.0184.85
4.4.00.0010.0264.76
4.3.110.0030.0154.67
4.3.100.0010.0164.66
4.3.90.0020.0194.64
4.3.80.0020.0264.58
4.3.70.0070.0134.63
4.3.60.0030.0204.63
4.3.50.0070.0174.63
4.3.40.0020.0344.53
4.3.30.0050.0143.28
4.3.20.0030.0213.25
4.3.10.0050.0143.21
4.3.00.0100.01713.14

preferences:
39.37 ms | 401 KiB | 5 Q