3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php new SimpleXMLElement('invalid blabla');
Output for 7.0.0 - 7.2.0
Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /in/cJ9VY on line 3 Warning: SimpleXMLElement::__construct(): invalid blabla in /in/cJ9VY on line 3 Warning: SimpleXMLElement::__construct(): ^ in /in/cJ9VY on line 3 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/cJ9VY:3 Stack trace: #0 /in/cJ9VY(3): SimpleXMLElement->__construct('invalid blabla') #1 {main} thrown in /in/cJ9VY on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.21
Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /in/cJ9VY on line 3 Warning: SimpleXMLElement::__construct(): invalid blabla in /in/cJ9VY on line 3 Warning: SimpleXMLElement::__construct(): ^ in /in/cJ9VY on line 3 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/cJ9VY:3 Stack trace: #0 /in/cJ9VY(3): SimpleXMLElement->__construct('invalid blabla') #1 {main} thrown in /in/cJ9VY on line 3
Process exited with code 255.