3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "DOMDocument"; $dom = new DOMDocument(); var_dump($dom->loadXML('<ä')); echo "SimpleXMLElement"; new SimpleXMLElement('<ä');
based on V00N5
Output for 7.0.6 - 7.2.0
DOMDocument Warning: DOMDocument::loadXML(): Couldn't find end of Start Tag ä line 1 in Entity, line: 1 in /in/QMH4j on line 5 bool(false) SimpleXMLElement Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Couldn't find end of Start Tag ä line 1 in /in/QMH4j on line 9 Warning: SimpleXMLElement::__construct(): <ä in /in/QMH4j on line 9 Warning: SimpleXMLElement::__construct(): ^ in /in/QMH4j on line 9 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/QMH4j:9 Stack trace: #0 /in/QMH4j(9): SimpleXMLElement->__construct('<\xC3\xA4') #1 {main} thrown in /in/QMH4j on line 9
Process exited with code 255.
Output for 7.0.0 - 7.0.5
DOMDocument Warning: DOMDocument::loadXML(): Couldn't find end of Start Tag ä line 1 in Entity, line: 1 in /in/QMH4j on line 5 bool(false) SimpleXMLElement Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Couldn't find end of Start Tag ä line 1 in /in/QMH4j on line 9 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/QMH4j:9 Stack trace: #0 /in/QMH4j(9): SimpleXMLElement->__construct('<\xC3\xA4') #1 {main} thrown in /in/QMH4j on line 9
Process exited with code 255.
Output for 5.4.29 - 5.5.28, 5.5.35 - 5.6.12, 5.6.21 - 5.6.28
DOMDocument Warning: DOMDocument::loadXML(): Couldn't find end of Start Tag ä line 1 in Entity, line: 1 in /in/QMH4j on line 5 bool(false) SimpleXMLElement Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Couldn't find end of Start Tag ä line 1 in /in/QMH4j on line 9 Warning: SimpleXMLElement::__construct(): <ä in /in/QMH4j on line 9 Warning: SimpleXMLElement::__construct(): ^ in /in/QMH4j on line 9 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/QMH4j:9 Stack trace: #0 /in/QMH4j(9): SimpleXMLElement->__construct('<\xC3\xA4') #1 {main} thrown in /in/QMH4j on line 9
Process exited with code 255.
Output for 5.5.29 - 5.5.34, 5.6.13 - 5.6.20
DOMDocument Warning: DOMDocument::loadXML(): Couldn't find end of Start Tag ä line 1 in Entity, line: 1 in /in/QMH4j on line 5 bool(false) SimpleXMLElement Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Couldn't find end of Start Tag ä line 1 in /in/QMH4j on line 9 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/QMH4j:9 Stack trace: #0 /in/QMH4j(9): SimpleXMLElement->__construct('<\xC3\xA4') #1 {main} thrown in /in/QMH4j on line 9
Process exited with code 255.
Output for 5.4.27 - 5.4.28
DOMDocument Warning: DOMDocument::loadXML(): Couldn't find end of Start Tag ä line 1 in Entity, line: 1 in /in/QMH4j on line 5 bool(false) SimpleXMLElement Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Couldn't find end of Start Tag ä line 1 in /in/QMH4j on line 9 Warning: SimpleXMLElement::__construct(): <ä in /in/QMH4j on line 9 Warning: SimpleXMLElement::__construct(): ^ in /in/QMH4j on line 9 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/QMH4j:9 Stack trace: #0 /in/QMH4j(9): SimpleXMLElement->__construct('<\xC3\xA4',\x) #1 {main} thrown in /in/QMH4j on line 9
Process exited with code 255.
Output for 5.3.19 - 5.4.26
DOMDocument Warning: DOMDocument::loadXML(): Couldn't find end of Start Tag ä line 1 in Entity, line: 1 in /in/QMH4j on line 5 bool(false) SimpleXMLElement Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Couldn't find end of Start Tag ä line 1 in /in/QMH4j on line 9 Warning: SimpleXMLElement::__construct(): <ä in /in/QMH4j on line 9 Warning: SimpleXMLElement::__construct(): ^ in /in/QMH4j on line 9 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/QMH4j:9 Stack trace: #0 /in/QMH4j(9): SimpleXMLElement->__construct('<??') #1 {main} thrown in /in/QMH4j on line 9
Process exited with code 255.