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></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){ if(empty($entry->nodeValue)){ echo 'no value'; } else { 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.10.0090.00916.58
8.5.00.0120.01020.46
8.4.150.0020.00114.05
8.4.140.0140.00917.93
8.4.130.0110.00919.28
8.4.120.0130.00824.42
8.4.110.0170.00419.27
8.4.100.0100.01217.96
8.4.90.0130.00719.82
8.4.80.0040.00518.20
8.4.70.0130.00918.10
8.4.60.0160.00618.06
8.4.50.0120.00818.18
8.4.40.0030.01318.22
8.4.30.0040.00420.59
8.4.20.0100.00619.97
8.4.10.0090.01219.92
8.3.280.0100.01018.80
8.3.270.0040.00516.77
8.3.260.0050.00416.89
8.3.250.0110.00819.25
8.3.240.0100.00919.00
8.3.230.0100.01116.76
8.3.220.0050.00317.53
8.3.210.0100.00916.86
8.3.200.0120.00817.00
8.3.190.0150.00416.71
8.3.180.0050.00618.72
8.3.170.0000.01516.77
8.3.160.0110.00717.72
8.3.150.0090.00917.46
8.3.140.0050.00519.28
8.3.130.0080.00018.96
8.3.120.0080.00019.52
8.3.110.0110.00020.94
8.3.100.0040.01224.06
8.3.90.0070.00426.77
8.3.80.0030.00619.36
8.3.70.0110.00818.68
8.3.60.0120.00316.74
8.3.50.0130.00724.63
8.3.40.0070.01421.98
8.3.30.0190.00318.77
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0060.00326.16
8.2.290.0080.00419.46
8.2.280.0100.01018.66
8.2.270.0100.00716.86
8.2.260.0080.00017.20
8.2.250.0030.00617.16
8.2.240.0150.00017.80
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0000.01517.04
8.2.180.0070.00725.92
8.2.170.0030.01519.26
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0110.00724.66
8.2.130.0000.00826.16
8.2.120.0080.00019.79
8.2.110.0090.00022.75
8.2.100.0120.00018.16
8.2.90.0090.00019.63
8.2.80.0040.00419.71
8.2.70.0080.00018.00
8.2.60.0050.00318.18
8.2.50.0000.00918.07
8.2.40.0000.00818.34
8.2.30.0040.00418.49
8.2.20.0040.00418.29
8.2.10.0000.00719.56
8.2.00.0000.00819.57
8.1.330.0100.00817.13
8.1.320.0120.00716.25
8.1.310.0120.00616.77
8.1.300.0040.00418.85
8.1.290.0030.00630.84
8.1.280.0060.01025.92
8.1.270.0040.00423.99
8.1.260.0070.01126.35
8.1.250.0000.00728.09
8.1.240.0060.00323.05
8.1.230.0070.00418.01
8.1.220.0090.00018.02
8.1.210.0040.00418.77
8.1.200.0100.00017.73
8.1.190.0040.00417.60
8.1.180.0090.00018.10
8.1.170.0030.00618.91
8.1.160.0040.00419.12
8.1.150.0040.00419.17
8.1.140.0040.00419.18
8.1.130.0030.00320.46
8.1.120.0060.00317.67
8.1.110.0080.00017.69
8.1.100.0090.00017.70
8.1.90.0000.00717.84
8.1.80.0000.01017.65
8.1.70.0030.00317.67
8.1.60.0000.00817.84
8.1.50.0050.00317.83
8.1.40.0000.00817.77
8.1.30.0040.00418.01
8.1.20.0040.00718.03
8.1.10.0040.00417.93
8.1.00.0030.00517.82
8.0.300.0030.00618.77
8.0.290.0050.00316.88
8.0.280.0040.00418.82
8.0.270.0000.00718.23
8.0.260.0000.00618.90
8.0.250.0030.00317.27
8.0.240.0030.00317.32
8.0.230.0000.00717.27
8.0.220.0030.00317.17
8.0.210.0080.00017.28
8.0.200.0040.00417.30
8.0.190.0000.00717.27
8.0.180.0040.00417.27
8.0.170.0000.01017.25
8.0.160.0000.00717.29
8.0.150.0070.00017.11
8.0.140.0000.00817.23
8.0.130.0000.00613.62
8.0.120.0080.00017.25
8.0.110.0040.00417.20
8.0.100.0030.00617.25
8.0.90.0030.00517.29
8.0.80.0060.00917.12
8.0.70.0060.00317.29
8.0.60.0000.00717.36
8.0.50.0080.00017.29
8.0.30.0080.00817.21
8.0.20.0100.01017.23
8.0.10.0050.00317.24
8.0.00.0090.01117.30
7.4.330.0020.00215.55
7.4.320.0000.00716.89
7.4.300.0070.00016.87
7.4.290.0030.00516.88
7.4.280.0000.00816.83
7.4.270.0040.00416.88
7.4.260.0000.00613.52
7.4.250.0040.00416.79
7.4.240.0040.00416.93
7.4.230.0040.00416.65
7.4.220.0000.00716.74
7.4.210.0130.00716.82
7.4.200.0080.00016.97
7.4.130.0070.01116.82
7.4.120.0120.00616.68
7.4.110.0210.00016.98
7.4.100.0150.00916.73
7.4.90.0090.01316.85
7.4.80.0220.00316.71
7.4.70.0150.01316.94
7.4.60.0000.01816.87
7.4.50.0070.01316.76
7.4.40.0060.01216.90
7.4.30.0120.00916.84
7.4.20.0100.01016.96
7.4.10.0120.00616.79
7.4.00.0070.01116.98
7.3.330.0070.00016.66
7.3.320.0000.00513.52
7.3.310.0030.00516.72
7.3.300.0030.00316.45
7.3.290.0070.00816.59
7.3.260.0130.01216.57
7.3.250.0060.01216.78
7.3.240.0100.01316.66
7.3.230.0060.01816.61
7.3.220.0150.00916.64
7.3.210.0150.00316.78
7.3.200.0120.01216.81
7.3.190.0110.00716.95
7.3.180.0090.00916.54
7.3.170.0120.00616.88
7.3.160.0090.01016.63
7.3.150.0180.00016.50
7.3.140.0160.00316.80
7.3.130.0100.01016.63
7.3.120.0190.00016.72
7.3.110.0070.01316.62
7.3.100.0130.00916.59
7.3.90.0090.00916.88
7.3.80.0120.00616.73
7.3.70.0120.00816.63
7.3.60.0170.00416.69
7.3.50.0090.00916.63
7.3.40.0070.01116.73
7.3.30.0140.00316.63
7.3.20.0200.00316.66
7.3.10.0120.00916.58
7.3.00.0090.00916.71

preferences:
35.32 ms | 403 KiB | 5 Q