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->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.0160.00318.55
8.3.50.0120.01022.24
8.3.40.0120.00319.01
8.3.30.0100.00319.46
8.3.20.0040.00420.69
8.3.10.0080.00022.47
8.3.00.0040.00422.84
8.2.180.0080.00816.88
8.2.170.0060.01222.96
8.2.160.0060.00919.49
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00419.73
8.2.110.0090.00022.76
8.2.100.0040.00819.89
8.2.90.0060.00319.38
8.2.80.0060.00318.18
8.2.70.0030.00617.88
8.2.60.0000.01018.41
8.2.50.0080.00018.07
8.2.40.0050.00218.53
8.2.30.0050.00318.24
8.2.20.0000.00718.00
8.2.10.0030.00618.11
8.2.00.0040.00418.14
8.1.280.0070.01125.92
8.1.270.0080.00022.51
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00324.29
8.1.230.0120.00019.26
8.1.220.0060.00318.01
8.1.210.0030.00518.77
8.1.200.0000.00917.60
8.1.190.0000.00817.90
8.1.180.0000.00719.04
8.1.170.0050.00518.96
8.1.160.0040.00422.35
8.1.150.0000.00819.04
8.1.140.0000.00817.80
8.1.130.0020.00518.15
8.1.120.0040.00417.95
8.1.110.0040.00417.85
8.1.100.0070.00017.65
8.1.90.0000.00817.71
8.1.80.0030.00317.83
8.1.70.0030.00317.83
8.1.60.0000.00918.02
8.1.50.0030.00617.74
8.1.40.0040.00417.93
8.1.30.0000.00817.75
8.1.20.0030.00617.96
8.1.10.0000.00917.84
8.1.00.0000.00817.84
8.0.300.0040.00418.77
8.0.290.0070.00017.43
8.0.280.0000.00718.73
8.0.270.0040.00417.62
8.0.260.0030.00317.00
8.0.250.0030.00417.21
8.0.240.0040.00417.41
8.0.230.0030.00717.23
8.0.220.0070.00017.36
8.0.210.0000.00817.27
8.0.200.0030.00317.39
8.0.190.0040.00417.39
8.0.180.0040.00417.34
8.0.170.0020.00517.33
8.0.160.0000.00717.26
8.0.150.0040.00417.07
8.0.140.0000.00817.27
8.0.130.0000.00613.57
8.0.120.0040.00417.29
8.0.110.0050.00217.09
8.0.100.0000.00717.21
8.0.90.0080.00017.31
8.0.80.0070.01117.28
8.0.70.0040.00417.10
8.0.60.0040.00417.11
8.0.50.0000.00817.30
8.0.30.0140.00617.46
8.0.20.0090.01017.44
8.0.10.0070.00017.33
8.0.00.0130.00617.14
7.4.330.0020.00215.44
7.4.320.0030.00317.00
7.4.300.0000.00716.77
7.4.290.0070.00016.80
7.4.280.0030.00717.03
7.4.270.0070.00016.81
7.4.260.0000.00716.70
7.4.250.0000.00816.82
7.4.240.0030.00516.84
7.4.230.0000.00716.89
7.4.220.0070.01016.79
7.4.210.0030.01116.95
7.4.200.0050.00317.09
7.4.190.0000.00816.82
7.4.160.0130.00316.70
7.4.150.0150.00817.40
7.4.140.0060.01417.86
7.4.130.0120.01316.77
7.4.120.0070.01116.77
7.4.110.0100.00716.80
7.4.100.0150.00316.75
7.4.90.0140.00316.93
7.4.80.0090.00919.39
7.4.70.0090.00916.73
7.4.60.0070.01017.00
7.4.50.0000.00716.74
7.4.40.0030.01522.77
7.4.30.0060.01016.69
7.4.00.0060.00914.92
7.3.330.0000.00613.54
7.3.320.0020.00213.56
7.3.310.0040.00416.39
7.3.300.0070.00016.56
7.3.290.0110.00316.57
7.3.280.0110.00616.67
7.3.270.0100.00717.40
7.3.260.0090.00916.72
7.3.250.0100.00716.68
7.3.240.0080.01216.96
7.3.230.0090.00916.92
7.3.210.0150.00316.84
7.3.200.0100.00719.39
7.3.190.0100.01016.99
7.3.180.0100.01016.93
7.3.170.0080.00816.77
7.3.160.0060.00917.00
7.3.120.0070.00714.81
7.2.330.0120.00616.73
7.2.320.0020.01516.78
7.2.310.0060.01516.78
7.2.300.0110.00617.04
7.2.290.0100.00617.02
7.2.60.0080.00516.68
7.1.200.0070.00715.89
7.1.70.0040.00417.20
7.1.60.0140.01019.82
7.1.50.0100.01417.15
7.1.00.0000.08022.79
7.0.200.0030.00717.14
7.0.140.0130.06322.22
7.0.60.0200.07320.07
7.0.50.0070.05318.14
7.0.40.0170.06320.49
7.0.30.0270.04320.24
7.0.20.0300.08020.24
7.0.10.0130.06720.37
7.0.00.0070.09320.28
5.6.280.0070.07021.04
5.6.210.0070.05720.65
5.6.200.0130.07018.35
5.6.190.0100.07320.82
5.6.180.3300.04720.61
5.6.170.0270.04320.55
5.6.160.0070.04320.55
5.6.150.0100.07318.35
5.6.140.0030.06018.27
5.6.130.0030.08318.30
5.6.120.0130.08021.28
5.6.110.0130.07021.28
5.6.100.0030.06021.27
5.6.90.0130.07721.16
5.6.80.0000.07720.65
5.6.70.3230.03020.65
5.5.350.0200.07720.60
5.5.340.0100.04318.14
5.5.330.0030.09020.35
5.5.320.3300.04720.58
5.5.310.0230.05320.56
5.5.300.0100.08018.20
5.5.290.0100.08318.07
5.5.280.0000.05320.96
5.5.270.0030.07720.80
5.5.260.0130.07320.98
5.5.250.0030.05720.91
5.5.240.0230.07320.39
5.4.450.0570.06019.71
5.4.440.0670.05319.77
5.4.430.0070.06319.68
5.4.420.0130.05319.45
5.4.410.0070.06019.51
5.4.400.1100.00018.98
5.4.390.0870.00018.96
5.4.380.0230.06018.88
5.4.370.0330.05718.91
5.4.360.0400.04318.83
5.4.350.0270.06018.79
5.4.340.0230.05018.68
5.4.320.0050.04112.76
5.4.310.0070.03712.75
5.4.300.0080.04612.75
5.4.290.0040.03912.75
5.4.280.0050.03612.65
5.4.270.0040.03712.65
5.4.260.0130.04718.99
5.4.250.0100.05019.05
5.4.240.0100.05718.83
5.4.230.0130.05019.31
5.4.220.0070.05718.99
5.4.210.0030.05718.93
5.4.200.0070.06718.99
5.4.190.0070.05718.94
5.4.180.0100.07018.82
5.4.170.0030.06318.93
5.4.160.0070.07019.15
5.4.150.0130.07719.30
5.4.140.0100.07016.45
5.4.130.0100.04716.71
5.4.120.0070.05316.66
5.4.110.0130.04716.70
5.4.100.0100.04316.70
5.4.90.0100.04316.56
5.4.80.0130.06316.43
5.4.70.0030.05716.56
5.4.60.0100.04316.27
5.4.50.0030.05016.70
5.4.40.0070.04716.36
5.4.30.0000.07316.36
5.4.20.0030.05316.53
5.4.10.0070.05016.55
5.4.00.0130.04316.20
5.3.290.0070.04413.02
5.3.280.0100.07014.68
5.3.270.0030.06714.53
5.3.260.0100.05014.67
5.3.250.0000.08314.86
5.3.240.0100.05014.78
5.3.230.0030.05714.78
5.3.220.0070.05314.75
5.3.210.0100.05314.71
5.3.200.0000.05714.75
5.3.190.0170.04014.71
5.3.180.0100.05314.77
5.3.170.0100.04714.68
5.3.160.0100.05014.61
5.3.150.0100.05714.77
5.3.140.0170.05014.68
5.3.130.0100.07014.59
5.3.120.0100.05014.77
5.3.110.0100.05314.80
5.3.100.0100.06314.35
5.3.90.0170.04013.94
5.3.80.0100.05014.16
5.3.70.0130.04714.13
5.3.60.0070.04714.05
5.3.50.0000.05713.99
5.3.40.0130.04314.12
5.3.30.0200.04013.96
5.3.20.0130.04313.90
5.3.10.0030.05013.71
5.3.00.0070.05313.69
5.2.170.0100.03711.25
5.2.160.0100.03711.25
5.2.150.0170.04311.26
5.2.140.0070.04011.32
5.2.130.0070.04311.08
5.2.120.0130.03011.28
5.2.110.0100.03311.28
5.2.100.0100.03711.21
5.2.90.0070.04011.22
5.2.80.0000.04711.21
5.2.70.0130.03311.28
5.2.60.0100.05011.36
5.2.50.0000.04311.19
5.2.40.0070.03711.10
5.2.30.0100.03711.09
5.2.20.0070.03711.04
5.2.10.0130.04310.84
5.2.00.0000.04310.88
5.1.60.0000.05310.11
5.1.50.0000.04010.30
5.1.40.0070.04710.09
5.1.30.0030.03710.43
5.1.20.0100.04010.50
5.1.10.0030.03310.14
5.1.00.0070.03310.22
5.0.50.0030.0308.66
5.0.40.0070.0278.55
5.0.30.0030.0578.36
5.0.20.0070.0238.53
5.0.10.0000.0308.21
5.0.00.0000.0438.29
4.4.90.0030.0206.80
4.4.80.0130.0106.80
4.4.70.0000.0236.80
4.4.60.0000.0306.80
4.4.50.0030.0206.80
4.4.40.0000.0376.80
4.4.30.0030.0306.80
4.4.20.0030.0206.80
4.4.10.0100.0136.80
4.4.00.0000.0436.80
4.3.110.0000.0236.80
4.3.100.0070.0176.80
4.3.90.0070.0136.80
4.3.80.0030.0336.80
4.3.70.0000.0206.80
4.3.60.0100.0136.80
4.3.50.0000.0236.80
4.3.40.0000.0376.80
4.3.30.0030.0206.80
4.3.20.0000.0236.80
4.3.10.0030.0306.80
4.3.00.0170.0209.22

preferences:
42.46 ms | 401 KiB | 5 Q