3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml =<<<EOL <TimelineObject><id><![CDATA[12577372733072486582]]></id><username><![CDATA[wxid_lj7cpmhigv9h12]]></username><createTime><![CDATA[1499339667]]></createTime><contentDescShowType>0</contentDescShowType><contentDescScene>3</contentDescScene><private><![CDATA[0]]></private><contentDesc><![CDATA[️个小时,总感觉腿不是自己的了。]]></contentDesc><contentattr><![CDATA[0]]></contentattr><sourceUserName></sourceUserName><sourceNickName></sourceNickName><statisticsData></statisticsData><weappInfo><appUserName></appUserName><pagePath></pagePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus=\"0\" poiClassifyType=\"0\" longitude=\"0.0\" latitude=\"0.0\" poiScale=\"0\" poiName=\"\" poiClassifyId=\"\" poiAddress=\"\" city=\"\" ></location><ContentObject><contentStyle><![CDATA[1]]></contentStyle><contentSubStyle><![CDATA[0]]></contentSubStyle><title></title><description></description><contentUrl></contentUrl><mediaList><media><id><![CDATA[12577372733505220770]]></id><type><![CDATA[2]]></type><title></title><description><![CDATA[️个小时,总感觉腿不是自己的了。]]></description><private><![CDATA[0]]></private><url type=\"1\" ><![CDATA[http://shmmsns.qpic.cn/mmsns/Jf9tH8Ysia8ouAdfEEvx4AUC1Vq4YxPL4p50E6n506BomvgwoIfn4tU1dNIgY6030Af5sYekX3Q4/0]]></url><thumb type=\"1\" ><![CDATA[http://shmmsns.qpic.cn/mmsns/Jf9tH8Ysia8ouAdfEEvx4AUC1Vq4YxPL4p50E6n506BomvgwoIfn4tU1dNIgY6030Af5sYekX3Q4/150]]></thumb><size height=\"1280.0\" width=\"720.0\" ></size></media></mediaList></ContentObject><actionInfo></actionInfo><statExtStr></statExtStr></TimelineObject> EOL; var_dump(simplexml_load_string($xml)); var_dump(simplexml_load_string($xml, null, LIBXML_NOCDATA));
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: simplexml_load_string(): Entity: line 1: parser error : AttValue: " or ' expected in /in/4ULfm on line 7 Warning: simplexml_load_string(): agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= in /in/4ULfm on line 7 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 7 Warning: simplexml_load_string(): Entity: line 1: parser error : attributes construct error in /in/4ULfm on line 7 Warning: simplexml_load_string(): agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= in /in/4ULfm on line 7 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 7 Warning: simplexml_load_string(): Entity: line 1: parser error : Couldn't find end of Start Tag location line 1 in /in/4ULfm on line 7 Warning: simplexml_load_string(): agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= in /in/4ULfm on line 7 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 7 Warning: simplexml_load_string(): Entity: line 1: parser error : Opening and ending tag mismatch: TimelineObject line 1 and location in /in/4ULfm on line 7 Warning: simplexml_load_string(): \"0\" poiName=\"\" poiClassifyId=\"\" poiAddress=\"\" city=\"\" ></location> in /in/4ULfm on line 7 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 7 Warning: simplexml_load_string(): Entity: line 1: parser error : Extra content at the end of the document in /in/4ULfm on line 7 Warning: simplexml_load_string(): \"0\" poiName=\"\" poiClassifyId=\"\" poiAddress=\"\" city=\"\" ></location> in /in/4ULfm on line 7 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 7 bool(false) Warning: simplexml_load_string(): Entity: line 1: parser error : AttValue: " or ' expected in /in/4ULfm on line 9 Warning: simplexml_load_string(): agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= in /in/4ULfm on line 9 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 9 Warning: simplexml_load_string(): Entity: line 1: parser error : attributes construct error in /in/4ULfm on line 9 Warning: simplexml_load_string(): agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= in /in/4ULfm on line 9 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 9 Warning: simplexml_load_string(): Entity: line 1: parser error : Couldn't find end of Start Tag location line 1 in /in/4ULfm on line 9 Warning: simplexml_load_string(): agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= in /in/4ULfm on line 9 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 9 Warning: simplexml_load_string(): Entity: line 1: parser error : Opening and ending tag mismatch: TimelineObject line 1 and location in /in/4ULfm on line 9 Warning: simplexml_load_string(): \"0\" poiName=\"\" poiClassifyId=\"\" poiAddress=\"\" city=\"\" ></location> in /in/4ULfm on line 9 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 9 Warning: simplexml_load_string(): Entity: line 1: parser error : Extra content at the end of the document in /in/4ULfm on line 9 Warning: simplexml_load_string(): \"0\" poiName=\"\" poiClassifyId=\"\" poiAddress=\"\" city=\"\" ></location> in /in/4ULfm on line 9 Warning: simplexml_load_string(): ^ in /in/4ULfm on line 9 bool(false)

preferences:
255.68 ms | 415 KiB | 287 Q