3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo DOMDocument::loadXML('<root />');
Output for 7.1.0
Deprecated: Non-static method DOMDocument::loadXML() should not be called statically in /in/YVJPi on line 2 Recoverable fatal error: Object of class DOMDocument could not be converted to string in /in/YVJPi on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.14
Deprecated: Non-static method DOMDocument::loadXML() should not be called statically in /in/YVJPi on line 2 Catchable fatal error: Object of class DOMDocument could not be converted to string in /in/YVJPi on line 2
Process exited with code 255.
Output for hhvm-3.12.0
Catchable fatal error: Object of class DOMDocument could not be converted to string in /in/YVJPi on line -1
Process exited with code 255.
Output for hhvm-3.10.0
Catchable fatal error: Object of class DOMDocument could not be converted to string in /in/YVJPi on line 2
Process exited with code 255.
Output for 5.2.0 - 5.6.28
Strict Standards: Non-static method DOMDocument::loadXML() should not be called statically in /in/YVJPi on line 2 Catchable fatal error: Object of class DOMDocument could not be converted to string in /in/YVJPi on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Strict Standards: Non-static method DOMDocument::loadXML() should not be called statically in /in/YVJPi on line 2 Object id #1
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'domdocument' in /in/YVJPi on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'domdocument' in /in/YVJPi on line 2