3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $strXML = '<?xml version="1.0" encoding="utf-8"?><List><Item PackageID="PID1197131022103218421" PackageName="2013冬季不冷-徽章碎片“季”" LotteryLevel="5" LotteryLevelName="2013冬季不冷-徽章碎片“季”" LotteryScale="0.25" /><Item PackageID="PID1197131022102238558" PackageName="2013冬季不冷-徽章碎片"2013"" LotteryLevel="1" LotteryLevelName="2013冬季不冷-徽章碎片"2013"" LotteryScale="0.24" /><Item PackageID="PID1197131022102721419" PackageName="2013冬季不冷-徽章碎片“温”" LotteryLevel="2" LotteryLevelName="2013冬季不冷-徽章碎片“温”" LotteryScale="0.26" /><Item PackageID="PID1197131022102820466" PackageName="2013冬季不冷-徽章碎片“暖”" LotteryLevel="3" LotteryLevelName="2013冬季不冷-徽章碎片“暖”" LotteryScale="0.0001" /><Item PackageID="PID1197131022102940279" PackageName="2013冬季不冷-徽章碎片“冬”" LotteryLevel="4" LotteryLevelName="2013冬季不冷-徽章碎片“冬”" LotteryScale="0.2499" /></List>'; $strXML = str_replace(array("'", "&", '"'), array('&#039;', '&amp;', '&quot;'), $strXML); $xml = simplexml_load_string($strXML);
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: simplexml_load_string(): Entity: line 1: parser error : String not started expecting ' or " in /in/Em6A2 on line 4 Warning: simplexml_load_string(): <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : Malformed declaration expecting version in /in/Em6A2 on line 4 Warning: simplexml_load_string(): <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : Blank needed here in /in/Em6A2 on line 4 Warning: simplexml_load_string(): <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : parsing XML declaration: '?>' expected in /in/Em6A2 on line 4 Warning: simplexml_load_string(): <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: simplexml_load_string(): xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: simplexml_load_string(): xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: simplexml_load_string(): xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: simplexml_load_string(): -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: simplexml_load_string(): -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: simplexml_load_string(): -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: simplexml_load_string(): 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: simplexml_load_string(): 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: simplexml_load_string(): 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: simplexml_load_string(): -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: simplexml_load_string(): -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: simplexml_load_string(): -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4 Warning: simplexml_load_string(): Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: simplexml_load_string(): ^ in /in/Em6A2 on line 4
Output for hhvm-3.10.0 - 3.12.0
Entity: line 1: parser error : String not started expecting ' or " <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI ^ Entity: line 1: parser error : Malformed declaration expecting version <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI ^ Entity: line 1: parser error : Blank needed here <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI ^ Entity: line 1: parser error : parsing XML declaration: '?>' expected <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI ^ Entity: line 1: parser error : AttValue: " or ' expected xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= ^ Entity: line 1: parser error : attributes construct error xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= ^ Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= ^ Entity: line 1: parser error : AttValue: " or ' expected -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= ^ Entity: line 1: parser error : attributes construct error -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= ^ Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= ^ Entity: line 1: parser error : AttValue: " or ' expected 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= ^ Entity: line 1: parser error : attributes construct error 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= ^ Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= ^ Entity: line 1: parser error : AttValue: " or ' expected -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= ^ Entity: line 1: parser error : attributes construct error -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= ^ Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= ^ Entity: line 1: parser error : AttValue: " or ' expected ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= ^ Entity: line 1: parser error : attributes construct error ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= ^ Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= ^
Output for 5.0.0 - 5.0.5
Warning: Entity: line 1: parser error : String not started expecting ' or " in /in/Em6A2 on line 4 Warning: <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : Malformed declaration expecting version in /in/Em6A2 on line 4 Warning: <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : Blank needed here in /in/Em6A2 on line 4 Warning: <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : parsing XML declaration: '?>' expected in /in/Em6A2 on line 4 Warning: <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageI in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><List><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: -徽章碎片“季”&quot; LotteryScale=&quot;0.25&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: 碎片&quot;2013&quot;&quot; LotteryScale=&quot;0.24&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: -徽章碎片“温”&quot; LotteryScale=&quot;0.26&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : AttValue: " or ' expected in /in/Em6A2 on line 4 Warning: ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : attributes construct error in /in/Em6A2 on line 4 Warning: ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4 Warning: Entity: line 1: parser error : Couldn't find end of Start Tag Item line 1 in /in/Em6A2 on line 4 Warning: ��章碎片“暖”&quot; LotteryScale=&quot;0.0001&quot; /><Item PackageID= in /in/Em6A2 on line 4 Warning: ^ in /in/Em6A2 on line 4
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/Em6A2 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/Em6A2 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/Em6A2 on line 4