3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<table> <tbody> <tr><tr> <tr> <td> <table class="style124"> <tbody> <tr> <td>A</td> </tr> <tr> <td>B</td> //THIS !! </tr> </tbody> </table> </td> </tr> <tr></tr> </tbody> </table>'; $dom = new DOMDocument; $dom->loadHTML($html); $xpath = new DOMXPath($dom); $query = '//table[contains(@class, "style124")]/tbody/tr[2]/td'; $entries = $xpath->query($query); foreach($entries as $entry){ echo $entry->nodeValue; }

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.5.00.0120.00920.35
8.4.150.0030.00014.05
8.4.140.0060.00318.20
8.4.130.0120.00818.04
8.4.120.0090.01020.82
8.4.110.0130.00819.17
8.4.100.0140.00518.33
8.4.90.0120.00720.81
8.4.80.0100.01019.28
8.4.70.0150.00719.18
8.4.60.0100.01020.94
8.4.50.0110.00919.08
8.4.40.0150.00617.98
8.4.30.0080.00020.64
8.4.20.0100.01020.05
8.4.10.0000.00820.10
8.3.280.0130.00818.61
8.3.270.0120.00816.75
8.3.260.0110.00817.13
8.3.250.0100.00919.45
8.3.240.0090.00816.85
8.3.230.0110.00816.79
8.3.220.0110.00721.15
8.3.210.0070.00217.03
8.3.200.0060.00316.90
8.3.190.0070.01317.35
8.3.180.0110.01119.18
8.3.170.0120.00617.29
8.3.160.0060.01320.23
8.3.150.0090.00918.82
8.3.140.0060.00317.80
8.3.130.0030.00718.72
8.3.120.0070.00419.43
8.3.110.0090.00920.94
8.3.100.0090.00024.06
8.3.90.0030.00526.77
8.3.80.0070.00419.36
8.3.70.0130.00318.55
8.3.60.0040.01117.13
8.3.50.0130.00623.71
8.3.40.0100.00722.23
8.3.30.0040.01419.01
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0120.00717.71
8.2.280.0130.00618.50
8.2.270.0110.00719.29
8.2.260.0070.01117.00
8.2.250.0040.00421.15
8.2.240.0030.00719.36
8.2.230.0210.00022.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0100.00018.88
8.2.190.0070.00716.82
8.2.180.0040.01125.92
8.2.170.0030.01219.04
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.33
8.2.110.0040.00419.35
8.2.100.0070.00418.03
8.2.90.0030.00618.55
8.2.80.0030.00618.18
8.2.70.0000.00818.29
8.2.60.0000.00920.13
8.2.50.0060.00318.10
8.2.40.0040.00421.59
8.2.30.0000.00718.35
8.2.20.0070.00018.50
8.2.10.0030.00519.80
8.2.00.0020.00519.80
8.1.330.0110.01019.00
8.1.320.0130.00618.58
8.1.310.0150.00319.09
8.1.300.0000.01020.28
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0030.00621.02
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0120.00017.70
8.1.230.0040.00821.41
8.1.220.0080.00018.16
8.1.210.0040.00419.16
8.1.200.0050.00517.60
8.1.190.0000.00817.48
8.1.180.0050.00318.10
8.1.170.0050.00318.82
8.1.160.0000.00719.14
8.1.150.0060.00319.22
8.1.140.0000.00819.13
8.1.130.0080.00020.42
8.1.120.0080.00317.82
8.1.110.0000.00817.82
8.1.100.0050.00217.85
8.1.90.0070.00017.85
8.1.80.0000.00817.75
8.1.70.0040.00417.81
8.1.60.0030.00617.98
8.1.50.0000.00817.83
8.1.40.0040.00417.84
8.1.30.0050.00517.87
8.1.20.0040.00717.98
8.1.10.0000.00817.94
8.1.00.0050.00317.76
8.0.300.0040.00420.08
8.0.290.0000.00817.13
8.0.280.0000.00818.75
8.0.270.0070.00018.27
8.0.260.0030.00318.91
8.0.250.0040.00417.21
8.0.240.0000.00617.34
8.0.230.0070.00017.35
8.0.220.0040.00417.26
8.0.210.0070.00017.12
8.0.200.0040.00417.18
8.0.190.0030.00517.21
8.0.180.0000.00817.14
8.0.170.0000.00817.12
8.0.160.0000.00717.24
8.0.150.0040.00417.04
8.0.140.0040.00417.25
8.0.130.0000.00613.66
8.0.120.0000.00717.12
8.0.110.0080.00017.04
8.0.100.0050.00517.16
8.0.90.0040.00417.29
8.0.80.0060.00917.25
8.0.70.0050.00317.25
8.0.60.0040.00417.30
8.0.50.0030.00517.14
8.0.30.0060.01217.27
8.0.20.0160.00417.42
8.0.10.0030.00517.23
8.0.00.0060.01317.12
7.4.330.0000.00715.55
7.4.320.0070.00016.97
7.4.300.0000.00716.71
7.4.290.0040.00416.87
7.4.280.0080.00016.84
7.4.270.0030.00516.84
7.4.260.0050.00013.54
7.4.250.0020.00516.91
7.4.240.0030.00316.99
7.4.230.0000.00716.99
7.4.220.0020.00416.94
7.4.210.0070.01216.87
7.4.200.0040.00417.04
7.4.130.0120.00816.74
7.4.120.0100.01316.65
7.4.110.0060.01316.64
7.4.100.0090.01216.64
7.4.90.0160.01016.73
7.4.80.0090.00916.62
7.4.70.0040.01816.69
7.4.60.0170.00816.82
7.4.50.0130.00716.74
7.4.40.0100.01016.81
7.4.30.0090.01616.76
7.4.20.0160.01016.69
7.4.10.0090.01217.03
7.4.00.0120.01217.08
7.3.330.0000.01116.70
7.3.320.0060.00013.52
7.3.310.0070.00016.62
7.3.300.0000.00616.54
7.3.290.0090.00816.63
7.3.260.0140.00716.58
7.3.250.0220.00316.63
7.3.240.0100.00916.91
7.3.230.0030.01616.82
7.3.220.0140.00716.55
7.3.210.0030.01716.96
7.3.200.0150.00416.58
7.3.190.0070.01116.65
7.3.180.0070.01116.83
7.3.170.0130.00716.67
7.3.160.0190.00716.64
7.3.150.0140.00416.79
7.3.140.0120.00916.79
7.3.130.0100.01016.84
7.3.120.0180.00616.68
7.3.110.0110.01116.80
7.3.100.0110.01116.70
7.3.90.0130.01016.88
7.3.80.0150.00617.02
7.3.70.0070.01716.60
7.3.60.0120.00916.74
7.3.50.0130.01316.58
7.3.40.0130.01016.68
7.3.30.0120.00916.70
7.3.20.0070.01716.64
7.3.10.0110.01116.86
7.3.00.0100.01016.72

preferences:
31.78 ms | 403 KiB | 5 Q