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> <DpsBus> </buses> XML; $data = simplexml_load_string($xml);
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 21: parser error : Opening and ending tag mismatch: DpsBus line 19 and buses in /in/cDeKQ on line 26 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 26 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 15 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 26 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 13 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 26 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 9 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 26 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 7 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 26 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 3 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 26 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag buses line 1 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 26 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 26
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 21: parser error : Opening and ending tag mismatch: DpsBus line 19 and buses in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 15 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 13 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 9 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 7 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 3 in /in/cDeKQ on line 26 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag buses line 1 in /in/cDeKQ on line 26
Output for 5.1.2
Warning: simplexml_load_string(): Entity: line 21: parser error : Opening and ending tag mismatch: DpsBus line 19 and buses in /in/cDeKQ on line 27 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 27 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 27 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 15 in /in/cDeKQ on line 27 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 27 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 27 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 13 in /in/cDeKQ on line 27 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 27 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 27 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 9 in /in/cDeKQ on line 27 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 27 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 27 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 7 in /in/cDeKQ on line 27 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 27 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 27 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag DpsBus line 3 in /in/cDeKQ on line 27 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 27 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 27 Warning: simplexml_load_string(): Entity: line 21: parser error : Premature end of data in tag buses line 1 in /in/cDeKQ on line 27 Warning: simplexml_load_string(): </buses> in /in/cDeKQ on line 27 Warning: simplexml_load_string(): ^ in /in/cDeKQ on line 27
Output for 5.0.0 - 5.0.5
Warning: Entity: line 21: parser error : Opening and ending tag mismatch: DpsBus line 19 and buses in /in/cDeKQ on line 26 Warning: </buses> in /in/cDeKQ on line 26 Warning: ^ in /in/cDeKQ on line 26 Warning: Entity: line 21: parser error : Premature end of data in tag DpsBus line 15 in /in/cDeKQ on line 26 Warning: </buses> in /in/cDeKQ on line 26 Warning: ^ in /in/cDeKQ on line 26 Warning: Entity: line 21: parser error : Premature end of data in tag DpsBus line 13 in /in/cDeKQ on line 26 Warning: </buses> in /in/cDeKQ on line 26 Warning: ^ in /in/cDeKQ on line 26 Warning: Entity: line 21: parser error : Premature end of data in tag DpsBus line 9 in /in/cDeKQ on line 26 Warning: </buses> in /in/cDeKQ on line 26 Warning: ^ in /in/cDeKQ on line 26 Warning: Entity: line 21: parser error : Premature end of data in tag DpsBus line 7 in /in/cDeKQ on line 26 Warning: </buses> in /in/cDeKQ on line 26 Warning: ^ in /in/cDeKQ on line 26 Warning: Entity: line 21: parser error : Premature end of data in tag DpsBus line 3 in /in/cDeKQ on line 26 Warning: </buses> in /in/cDeKQ on line 26 Warning: ^ in /in/cDeKQ on line 26 Warning: Entity: line 21: parser error : Premature end of data in tag buses line 1 in /in/cDeKQ on line 26 Warning: </buses> in /in/cDeKQ on line 26 Warning: ^ in /in/cDeKQ on line 26
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/cDeKQ on line 26
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/cDeKQ on line 26
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: simplexml_load_string() in /in/cDeKQ on line 27
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/cDeKQ on line 26