3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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));
based on 3UcRn
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
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)
Output for hhvm-3.15.4
bool(false) Warning: simplexml_load_string() expects parameter 2 to be string, null given in /in/4ULfm on line 9 NULL Entity: line 1: parser error : AttValue: " or ' expected agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= ^ Entity: line 1: parser error : attributes construct error agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= ^ Entity: line 1: parser error : Couldn't find end of Start Tag location line 1 agePath></weappInfo><canvasInfoXml></canvasInfoXml><location poiClickableStatus= ^ Entity: line 1: parser error : Opening and ending tag mismatch: TimelineObject line 1 and location \"0\" poiName=\"\" poiClassifyId=\"\" poiAddress=\"\" city=\"\" ></location> ^ Entity: line 1: parser error : Extra content at the end of the document \"0\" poiName=\"\" poiClassifyId=\"\" poiAddress=\"\" city=\"\" ></location> ^