3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = <<<XML <buses> <DpsBus> <Line>Blue</Line> <Destination>North</Destination> <Time>5 min</Time> <DpsBus> <DpsBus> <Line>Green</Line> <Destination>East</Destination> <Time>7 min</Time> <DpsBus> <DpsBus> <Line>Blue</Line> <Destination>North</Destination> <Time>9 min</Time> XML; $data = simplexml_load_string($xml);
based on cDeKQ
Output for 5.1.0 - 5.1.1, 5.1.3 - 5.5.28, 5.5.35 - 5.6.12, 5.6.21 - 5.6.28, 7.0.6 - 7.1.0
Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 15 in /in/94j1Q on line 24 Warning: simplexml_load_string(): in /in/94j1Q on line 24 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 13 in /in/94j1Q on line 24 Warning: simplexml_load_string(): in /in/94j1Q on line 24 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 9 in /in/94j1Q on line 24 Warning: simplexml_load_string(): in /in/94j1Q on line 24 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 7 in /in/94j1Q on line 24 Warning: simplexml_load_string(): in /in/94j1Q on line 24 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 3 in /in/94j1Q on line 24 Warning: simplexml_load_string(): in /in/94j1Q on line 24 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag buses line 1 in /in/94j1Q on line 24 Warning: simplexml_load_string(): in /in/94j1Q on line 24 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 24
Output for 5.5.29 - 5.5.34, 5.6.13 - 5.6.20, 7.0.0 - 7.0.5
Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 15 in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 13 in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 9 in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 7 in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 3 in /in/94j1Q on line 24 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag buses line 1 in /in/94j1Q on line 24
Output for hhvm-3.12.0
Entity: line 19: parser error : Premature end of data in tag DpsBus line 15 Entity: line 19: parser error : Premature end of data in tag DpsBus line 13 Entity: line 19: parser error : Premature end of data in tag DpsBus line 9 Entity: line 19: parser error : Premature end of data in tag DpsBus line 7 Entity: line 19: parser error : Premature end of data in tag DpsBus line 3 Entity: line 19: parser error : Premature end of data in tag buses line 1
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.2
Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 15 in /in/94j1Q on line 25 Warning: simplexml_load_string(): in /in/94j1Q on line 25 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 25 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 13 in /in/94j1Q on line 25 Warning: simplexml_load_string(): in /in/94j1Q on line 25 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 25 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 9 in /in/94j1Q on line 25 Warning: simplexml_load_string(): in /in/94j1Q on line 25 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 25 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 7 in /in/94j1Q on line 25 Warning: simplexml_load_string(): in /in/94j1Q on line 25 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 25 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag DpsBus line 3 in /in/94j1Q on line 25 Warning: simplexml_load_string(): in /in/94j1Q on line 25 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 25 Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag buses line 1 in /in/94j1Q on line 25 Warning: simplexml_load_string(): in /in/94j1Q on line 25 Warning: simplexml_load_string(): ^ in /in/94j1Q on line 25
Output for 5.0.0 - 5.0.5
Warning: Entity: line 19: parser error : Premature end of data in tag DpsBus line 15 in /in/94j1Q on line 24 Warning: in /in/94j1Q on line 24 Warning: ^ in /in/94j1Q on line 24 Warning: Entity: line 19: parser error : Premature end of data in tag DpsBus line 13 in /in/94j1Q on line 24 Warning: in /in/94j1Q on line 24 Warning: ^ in /in/94j1Q on line 24 Warning: Entity: line 19: parser error : Premature end of data in tag DpsBus line 9 in /in/94j1Q on line 24 Warning: in /in/94j1Q on line 24 Warning: ^ in /in/94j1Q on line 24 Warning: Entity: line 19: parser error : Premature end of data in tag DpsBus line 7 in /in/94j1Q on line 24 Warning: in /in/94j1Q on line 24 Warning: ^ in /in/94j1Q on line 24 Warning: Entity: line 19: parser error : Premature end of data in tag DpsBus line 3 in /in/94j1Q on line 24 Warning: in /in/94j1Q on line 24 Warning: ^ in /in/94j1Q on line 24 Warning: Entity: line 19: parser error : Premature end of data in tag buses line 1 in /in/94j1Q on line 24 Warning: in /in/94j1Q on line 24 Warning: ^ in /in/94j1Q on line 24
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/94j1Q on line 24
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/94j1Q on line 24
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: simplexml_load_string() in /in/94j1Q on line 25
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/94j1Q on line 24