3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = <<<XML <?xml version="1.0" encoding="UTF-8" standalone="no"?> <globkurier> <login>sklep@soro.pl</login> <password>a88349c3721b83cb1514cb4d088ca9c6</password> <apikey>FmBpD-UFgNB-qbh29-i2x69</apikey> <order_method>SAVE</order_method> <order_source>API</order_source> <orders><order> <reference>7144</reference> <sent_date>2015-12-29</sent_date> <base_service>S3003</base_service><additional_services><additional_service>A3003</additional_service><additional_service>A3009<$ <cod_account></cod_account> <insurance_amount>1000.00</insurance_amount> <declared_value>0.00</declared_value> <payment_type>D</payment_type> <content>Artyku�^�y dla noworodka</content> <weight>4.00</weight> <length>50</length> <width>30</width> <height>25</height> <number_of_parcels>1</number_of_parcels> <comments></comments> <discount_code></discount_code> <sender> <name>SORO</name> <street>Ul. Rynek</street> <house_number>1</house_number> <apartment_number>7</apartment_number> <postal_code>58-370</postal_code> <city>Boguszów-Gorce</city> <country>PL</country> <contact_person>Pawe�^� Marciniak</contact_person> <phone>517543006</phone> <email>sklep@soro.pl</email> </sender> <receiver> <name>Renata Gryniewicz-Struk </name> <street>Mieszcza�^�ska</street> <house_number>62</house_number> <apartment_number></apartment_number> <postal_code>21-500</postal_code> <city>Bia�^�a-Podlaska</city> <country>PL</country> <contact_person>Renata Gryniewicz-Struk</contact_person> <phone>513089666</phone> <email>kaszpirka@interia.pl</email> </receiver></order></orders></globkurier> XML; var_dump(simplexml_load_string($xml));
Output for 5.5.24 - 5.5.28, 5.5.35 - 5.6.12, 5.6.21 - 5.6.28, 7.0.6 - 7.2.0
Warning: simplexml_load_string(): Entity: line 11: parser error : StartTag: invalid element name in /in/84MTa on line 52 Warning: simplexml_load_string(): ervices><additional_service>A3003</additional_service><additional_service>A3009< in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Opening and ending tag mismatch: additional_service line 11 and order in /in/84MTa on line 52 Warning: simplexml_load_string(): </receiver></order></orders></globkurier> in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Opening and ending tag mismatch: additional_services line 11 and orders in /in/84MTa on line 52 Warning: simplexml_load_string(): </receiver></order></orders></globkurier> in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Opening and ending tag mismatch: order line 8 and globkurier in /in/84MTa on line 52 Warning: simplexml_load_string(): </receiver></order></orders></globkurier> in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Premature end of data in tag orders line 8 in /in/84MTa on line 52 Warning: simplexml_load_string(): </receiver></order></orders></globkurier> in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Premature end of data in tag globkurier line 2 in /in/84MTa on line 52 Warning: simplexml_load_string(): </receiver></order></orders></globkurier> in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 bool(false)
Output for 5.3.21 - 5.4.45, 5.5.29 - 5.5.34, 5.6.13 - 5.6.20, 7.0.0 - 7.0.5
Warning: simplexml_load_string(): Entity: line 11: parser error : StartTag: invalid element name in /in/84MTa on line 52 Warning: simplexml_load_string(): ervices><additional_service>A3003</additional_service><additional_service>A3009< in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Opening and ending tag mismatch: additional_service line 11 and order in /in/84MTa on line 52 Warning: simplexml_load_string(): </receiver></order></orders></globkurier> in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Opening and ending tag mismatch: additional_services line 11 and orders in /in/84MTa on line 52 Warning: simplexml_load_string(): </receiver></order></orders></globkurier> in /in/84MTa on line 52 Warning: simplexml_load_string(): ^ in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Opening and ending tag mismatch: order line 8 and globkurier in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Premature end of data in tag orders line 8 in /in/84MTa on line 52 Warning: simplexml_load_string(): Entity: line 47: parser error : Premature end of data in tag globkurier line 2 in /in/84MTa on line 52 bool(false)