3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <a href="http://aaa.com">http://aaa.com</a> HTML; $dom = new DomDocument($html); var_dump($dom->getElementsByTagName('a'));

preferences:
33.81 ms | 402 KiB | 5 Q