3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = <<<XML <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY xxe SYSTEM "http://ss23.geek.nz/viper-test.txt" > ]> <foo>&xxe;</foo> XML; $x = new DOMDocument(); $x->loadXML($xml); foreach ($x->getElementsByTagName('foo') as $u) { var_dump($u->nodeValue); }
Output for 5.3.7 - 7.1.0
string(0) ""