3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<td class="t_ip">104.131.248.140</td><td class="t_port"> <script type="text/javascript"> //<![CDATA[ document.write(BigBlind^BigBlind^60088); //]]> </script>50088 </td><td class="t_type"> 5 </td><td class="t_ip">79.101.32.14</td><td class="t_port"> <script type="text/javascript"> //<![CDATA[ document.write(Polymorth^Polymorth^1080); //]]> </script>45080 </td>'; $dom = new DOMDocument; $dom->loadHTML($html); $root = $dom->documentElement; $tds = $root->getElementsByTagName("td"); foreach($tds as $key => $value){ echo $value->parentNode->textContent."\n"; }
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
104.131.248.140 //<![CDATA[ document.write(BigBlind^BigBlind^60088); //]]> 50088 5 79.101.32.14 //<![CDATA[ document.write(Polymorth^Polymorth^1080); //]]> 45080 104.131.248.140 //<![CDATA[ document.write(BigBlind^BigBlind^60088); //]]> 50088 5 79.101.32.14 //<![CDATA[ document.write(Polymorth^Polymorth^1080); //]]> 45080 104.131.248.140 //<![CDATA[ document.write(BigBlind^BigBlind^60088); //]]> 50088 5 79.101.32.14 //<![CDATA[ document.write(Polymorth^Polymorth^1080); //]]> 45080 104.131.248.140 //<![CDATA[ document.write(BigBlind^BigBlind^60088); //]]> 50088 5 79.101.32.14 //<![CDATA[ document.write(Polymorth^Polymorth^1080); //]]> 45080 104.131.248.140 //<![CDATA[ document.write(BigBlind^BigBlind^60088); //]]> 50088 5 79.101.32.14 //<![CDATA[ document.write(Polymorth^Polymorth^1080); //]]> 45080

preferences:
148.09 ms | 407 KiB | 193 Q