3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Deprecated: Function libxml_disable_entity_loader() is deprecated in /in/7n1J8 on line 4 Warning: XMLReader::open(): Unable to open source data in /in/7n1J8 on line 6 Deprecated: Function libxml_disable_entity_loader() is deprecated in /in/7n1J8 on line 8 Warning: DOMDocument::load(): I/O warning : failed to load external entity "/in/7n1J8" in /in/7n1J8 on line 10
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.0.5, 5.1.0 - 5.1.6, 5.2.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.3.11, 4.4.0 - 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 />

preferences:
279.6 ms | 402 KiB | 372 Q