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[?个小时,总感觉腿不是自己的了。[坏笑]\u0003]></contentDesc> <contentattr><![CDATA[0]]></contentattr> <sourceUserName></sourceUserName> <sourceNickName></sourceNickName> <statisticsData></statisticsData> </TimelineObject> EOL; var_dump(simplexml_load_string($xml)); var_dump(simplexml_load_string($xml, null, LIBXML_NOCDATA));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: contentDesc line 8 and contentattr in /in/tvc0d on line 19 Warning: simplexml_load_string(): <contentattr><![CDATA[0]]></contentattr> in /in/tvc0d on line 19 Warning: simplexml_load_string(): ^ in /in/tvc0d on line 19 bool(false) Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: contentDesc line 8 and contentattr in /in/tvc0d on line 21 Warning: simplexml_load_string(): <contentattr><![CDATA[0]]></contentattr> in /in/tvc0d on line 21 Warning: simplexml_load_string(): ^ in /in/tvc0d on line 21 bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
47.21 ms | 402 KiB | 8 Q