3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:meldescheine xmlns:ns2="http://www.avs.meldeschein.de/ns/"> <identifikation> <erzeugung>2016-01-28</erzeugung> <schnittstelle>IWAYS</schnittstelle> <kurverwaltung>0</kurverwaltung> <verarbeitung>BUCHEN</verarbeitung> <version>3.25.6</version> </identifikation> <fehlermeldungen> <fehler> <code>10001</code> <beschreibung>Meldeschein-Buchen erfolgreich</beschreibung> </fehler> </fehlermeldungen> <ns2:meldeschein>'; $xml=simplexml_load_string($xml); print_r($xml->children('fehler'));
Output for 7.3.0 - 7.3.1
Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldeschein line 18 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldescheine line 4 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Body line 3 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Envelope line 2 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Fatal error: Uncaught Error: Call to a member function children() on bool in /in/9i6vj:24 Stack trace: #0 {main} thrown in /in/9i6vj on line 24
Process exited with code 255.
Output for 7.0.6 - 7.2.13
Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldeschein line 18 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldescheine line 4 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Body line 3 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Envelope line 2 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Fatal error: Uncaught Error: Call to a member function children() on boolean in /in/9i6vj:24 Stack trace: #0 {main} thrown in /in/9i6vj on line 24
Process exited with code 255.
Output for 7.0.0 - 7.0.5
Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldeschein line 18 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldescheine line 4 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Body line 3 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Envelope line 2 in /in/9i6vj on line 22 Fatal error: Uncaught Error: Call to a member function children() on boolean in /in/9i6vj:24 Stack trace: #0 {main} thrown in /in/9i6vj on line 24
Process exited with code 255.
Output for 5.6.8 - 5.6.12, 5.6.21 - 5.6.28
Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldeschein line 18 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldescheine line 4 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Body line 3 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Envelope line 2 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Fatal error: Call to a member function children() on boolean in /in/9i6vj on line 24
Process exited with code 255.
Output for 5.6.13 - 5.6.20
Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldeschein line 18 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldescheine line 4 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Body line 3 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Envelope line 2 in /in/9i6vj on line 22 Fatal error: Call to a member function children() on boolean in /in/9i6vj on line 24
Process exited with code 255.
Output for 5.5.24 - 5.5.28, 5.5.35
Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldeschein line 18 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldescheine line 4 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Body line 3 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Envelope line 2 in /in/9i6vj on line 22 Warning: simplexml_load_string(): <ns2:meldeschein> in /in/9i6vj on line 22 Warning: simplexml_load_string(): ^ in /in/9i6vj on line 22 Fatal error: Call to a member function children() on a non-object in /in/9i6vj on line 24
Process exited with code 255.
Output for 5.3.22 - 5.4.45, 5.5.29 - 5.5.34
Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldeschein line 18 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag meldescheine line 4 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Body line 3 in /in/9i6vj on line 22 Warning: simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag Envelope line 2 in /in/9i6vj on line 22 Fatal error: Call to a member function children() on a non-object in /in/9i6vj on line 24
Process exited with code 255.