3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new SimpleXMLElement('');
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: String could not be parsed as XML in /in/vvg2q:3 Stack trace: #0 /in/vvg2q(3): SimpleXMLElement->__construct('') #1 {main} thrown in /in/vvg2q on line 3
Process exited with code 255.
Output for hhvm-3.11.1 - 3.17.3
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/vvg2q:3 Stack trace: #0 /in/vvg2q(3): SimpleXMLElement->__construct() #1 {main}
Process exited with code 255.
Output for 5.5.0 - 5.6.30
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/vvg2q:3 Stack trace: #0 /in/vvg2q(3): SimpleXMLElement->__construct('') #1 {main} thrown in /in/vvg2q on line 3
Process exited with code 255.