3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = 'system/expressionengine/third_party/product/files/xml/'.$name_file; $reader = new XMLReader(); if(FALSE === $reader->open($file)){ return "Error reading xml file"; }
Output for 5.5.0 - 7.1.0
Notice: Undefined variable: name_file in /in/aEQA8 on line 2 Warning: XMLReader::open(): Unable to open source data in /in/aEQA8 on line 4
Output for 5.2.3 - 5.4.45
Warning: XMLReader::open(): Unable to open source data in /in/aEQA8 on line 4
Output for 5.1.3 - 5.2.2
<br /> <b>Warning</b>: XMLReader::open() [<a href='function.XMLReader-open'>function.XMLReader-open</a>]: Unable to open source data in <b>/in/aEQA8</b> on line <b>4</b><br />
Output for 5.1.2
<br /> <b>Warning</b>: XMLReader::open() [<a href='function.open'>function.open</a>]: Unable to open source data in <b>/in/aEQA8</b> on line <b>4</b><br />
Output for 5.0.0 - 5.1.1
<br /> <b>Fatal error</b>: Class 'XMLReader' not found in <b>/in/aEQA8</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: xmlreader in <b>/in/aEQA8</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: xmlreader in <b>/in/aEQA8</b> on line <b>3</b><br />