3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filename = __FILE__; libxml_disable_entity_loader(true); $reader = new \XMLReader(); $reader->open($filename); libxml_disable_entity_loader(true); $dom = new \DOMDocument(); $dom->load($filename);
Output for 5.3.0 - 7.1.0
Warning: XMLReader::open(): Unable to open source data in /in/7n1J8 on line 6 Warning: DOMDocument::load(): I/O warning : failed to load external entity "/in/7n1J8" in /in/7n1J8 on line 10
Output for 5.2.11 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7n1J8 on line 5 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7n1J8 on line 9 Warning: XMLReader::open(): Unable to open source data in /in/7n1J8 on line 6 Warning: DOMDocument::load(): I/O warning : failed to load external entity "/in/7n1J8" in /in/7n1J8 on line 10
Output for 5.2.3 - 5.2.10
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7n1J8 on line 5 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7n1J8 on line 9 Fatal error: Call to undefined function libxml_disable_entity_loader() in /in/7n1J8 on line 4
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/7n1J8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/7n1J8</b> on line <b>9</b><br /> <br /> <b>Fatal error</b>: Call to undefined function libxml_disable_entity_loader() in <b>/in/7n1J8</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/7n1J8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/7n1J8</b> on line <b>9</b><br /> <br /> <b>Fatal error</b>: Call to undefined function: libxml_disable_entity_loader() in <b>/in/7n1J8</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/7n1J8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/7n1J8</b> on line <b>9</b><br /> <br /> <b>Fatal error</b>: Call to undefined function: libxml_disable_entity_loader() in <b>/in/7n1J8</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/7n1J8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/7n1J8</b> on line <b>9</b><br /> <br /> <b>Fatal error</b>: Call to undefined function: libxml_disable_entity_loader() in <b>/in/7n1J8</b> on line <b>4</b><br />