3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = <<<DATA <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8:{s:7:"part_id";i:13654;s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470  Ohm";s:8:"quantity";i:1;s:3:"url";s:48:"http://makeprojects.com/Item/Metal_film_resistor";s:3:"pid";i:721;s:7:"post_ID";i:268097;}]]></wp:meta_value> </wp:postmeta> DATA; $s = simplexml_load_string($data); echo (string)$s;
Output for 5.5.24 - 7.1.0
Warning: simplexml_load_string(): namespace error : Namespace prefix wp on postmeta is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on meta_key is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on meta_value is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : CData section not finished a:8:{s:7:"part_id";i:13654;s:4:"text";s:19:"Metal in /in/OmcWn on line 6 Warning: simplexml_load_string(): 54;s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : PCDATA invalid Char value 31 in /in/OmcWn on line 6 Warning: simplexml_load_string(): 54;s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : PCDATA invalid Char value 31 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ;s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470  in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : Sequence ']]>' not allowed in content in /in/OmcWn on line 6 Warning: simplexml_load_string(): s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470   in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : Sequence ']]>' not allowed in content in /in/OmcWn on line 6 Warning: simplexml_load_string(): eprojects.com/Item/Metal_film_resistor";s:3:"pid";i:721;s:7:"post_ID";i:268097;} in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : internal error: detected an error in element content in /in/OmcWn on line 6 Warning: simplexml_load_string(): eprojects.com/Item/Metal_film_resistor";s:3:"pid";i:721;s:7:"post_ID";i:268097;} in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6
Output for 5.2.3 - 5.4.45
Warning: simplexml_load_string(): namespace error : Namespace prefix wp on postmeta is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on meta_key is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on meta_value is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : CData section not finished a:8:{s:7:"part_id";i:13654;s:4:"text";s:19:"Metal in /in/OmcWn on line 6 Warning: simplexml_load_string(): 54;s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : PCDATA invalid Char value 31 in /in/OmcWn on line 6 Warning: simplexml_load_string(): 54;s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : PCDATA invalid Char value 31 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ;s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470  in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : Sequence ']]>' not allowed in content in /in/OmcWn on line 6 Warning: simplexml_load_string(): s:4:"text";s:19:"Metal film resistor";s:5:"notes";s:0:"";s:4:"type";s:8:"470   in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : Sequence ']]>' not allowed in content in /in/OmcWn on line 6 Warning: simplexml_load_string(): eprojects.com/Item/Metal_film_resistor";s:3:"pid";i:721;s:7:"post_ID";i:268097;} in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : internal error: detected an error in element content in /in/OmcWn on line 6 Warning: simplexml_load_string(): eprojects.com/Item/Metal_film_resistor";s:3:"pid";i:721;s:7:"post_ID";i:268097;} in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): Entity: line 1: parser error : Extra content at the end of the document in /in/OmcWn on line 6 Warning: simplexml_load_string(): eprojects.com/Item/Metal_film_resistor";s:3:"pid";i:721;s:7:"post_ID";i:268097;} in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6
Output for 5.1.0 - 5.1.1, 5.1.3 - 5.2.2
Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on postmeta is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on meta_key is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on meta_value is not defined in /in/OmcWn on line 6 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 6
Output for 5.1.2
Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on postmeta is not defined in /in/OmcWn on line 7 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 7 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 7 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on meta_key is not defined in /in/OmcWn on line 7 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 7 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 7 Warning: simplexml_load_string(): namespace error : Namespace prefix wp on meta_value is not defined in /in/OmcWn on line 7 Warning: simplexml_load_string(): <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 7 Warning: simplexml_load_string(): ^ in /in/OmcWn on line 7
Output for 5.0.0 - 5.0.5
Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: namespace error : Namespace prefix wp on postmeta is not defined in /in/OmcWn on line 6 Warning: <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: ^ in /in/OmcWn on line 6 Warning: namespace error : Namespace prefix wp on meta_key is not defined in /in/OmcWn on line 6 Warning: <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: ^ in /in/OmcWn on line 6 Warning: namespace error : Namespace prefix wp on meta_value is not defined in /in/OmcWn on line 6 Warning: <wp:postmeta> <wp:meta_key>parts</wp:meta_key> <wp:meta_value><![CDATA[a:8 in /in/OmcWn on line 6 Warning: ^ in /in/OmcWn on line 6
Output for 4.4.5 - 4.4.9
Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Fatal error: Call to undefined function: simplexml_load_string() in /in/OmcWn on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Fatal error: Call to undefined function: simplexml_load_string() in /in/OmcWn on line 6
Process exited with code 255.
Output for 4.4.2
Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Fatal error: Call to undefined function: simplexml_load_string() in /in/OmcWn on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Warning: Unexpected character in input: '' (ASCII=31) state=5 in /in/OmcWn on line 3 Fatal error: Call to undefined function: simplexml_load_string() in /in/OmcWn on line 6