3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <?xml version='1.0'?> <document> <0>Forty What?</0> <from>Joe</from> <to>Jane</to> <body> I know that's the answer -- but what's the question? </body> </document> XML; $xml = simplexml_load_string($string); print_r($xml);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 3: parser error : StartTag: invalid element name in /in/0d6Tv on line 15 Warning: simplexml_load_string(): <0>Forty What?</0> in /in/0d6Tv on line 15 Warning: simplexml_load_string(): ^ in /in/0d6Tv on line 15 Warning: simplexml_load_string(): Entity: line 3: parser error : expected '>' in /in/0d6Tv on line 15 Warning: simplexml_load_string(): <0>Forty What?</0> in /in/0d6Tv on line 15 Warning: simplexml_load_string(): ^ in /in/0d6Tv on line 15 Warning: simplexml_load_string(): Entity: line 3: parser error : Opening and ending tag mismatch: document line 2 and unparseable in /in/0d6Tv on line 15 Warning: simplexml_load_string(): <0>Forty What?</0> in /in/0d6Tv on line 15 Warning: simplexml_load_string(): ^ in /in/0d6Tv on line 15 Warning: simplexml_load_string(): Entity: line 3: parser error : Extra content at the end of the document in /in/0d6Tv on line 15 Warning: simplexml_load_string(): <0>Forty What?</0> in /in/0d6Tv on line 15 Warning: simplexml_load_string(): ^ in /in/0d6Tv on line 15

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:
38.62 ms | 403 KiB | 8 Q