3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = 'system/expressionengine/third_party/product/files/xml/lo.xml'; $reader = new XMLReader(); if(FALSE === $reader->open($file)){ return "Error reading xml file"; }
Output for 5.1.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: XMLReader::open(): Unable to open source data in /in/aTAMe on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: No such file or directory in /in/aTAMe on line 4 Warning: Unable to open source data in /in/aTAMe on line 4
Output for 5.0.0 - 5.1.1
Fatal error: Class 'XMLReader' not found in /in/aTAMe on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: xmlreader in /in/aTAMe on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: xmlreader in /in/aTAMe on line 3