3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = '<?xml version="1.0"?> <!DOCTYPE results [ <!ENTITY harmless SYSTEM "php://filter/read=convert.base64-encode/resource=/var/www/config.ini" > ]> <results> <result>&harmless;</result> </results>'; $doc = new DOMDocument; $doc->loadXML($xml); echo $doc->results->result;
based on v90q1
Output for 7.2.0
Notice: Undefined property: DOMDocument::$results in /in/6UqoT on line 15 Notice: Trying to get property 'result' of non-object in /in/6UqoT on line 15
Output for 5.3.18 - 7.1.10
Notice: Undefined property: DOMDocument::$results in /in/6UqoT on line 15 Notice: Trying to get property of non-object in /in/6UqoT on line 15