3v4l.org

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