3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<<<XML <?xml version='1.0'?> <document> <cmd>login</cmd> <login>Richard</login> </document> XML"; $xml = simplexml_load_string($string); print_r($xml); $login = $xml->login; print_r($login); $login = (string) $xml->login; print_r($login); ?>
Output for git.master, git.master_jit
Warning: simplexml_load_string(): Entity: line 1: parser error : StartTag: invalid element name in /in/jV2if on line 11 Warning: simplexml_load_string(): <<<XML in /in/jV2if on line 11 Warning: simplexml_load_string(): ^ in /in/jV2if on line 11 Warning: simplexml_load_string(): Entity: line 1: parser error : Extra content at the end of the document in /in/jV2if on line 11 Warning: simplexml_load_string(): <<<XML in /in/jV2if on line 11 Warning: simplexml_load_string(): ^ in /in/jV2if on line 11 Warning: Attempt to read property "login" on bool in /in/jV2if on line 13 Warning: Attempt to read property "login" on bool in /in/jV2if on line 15
Output for rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 1: parser error : StartTag: invalid element name in /in/jV2if on line 11 Warning: simplexml_load_string(): <<<XML in /in/jV2if on line 11 Warning: simplexml_load_string(): ^ in /in/jV2if on line 11 Warning: simplexml_load_string(): Entity: line 1: parser error : Extra content at the end of the document in /in/jV2if on line 11 Warning: simplexml_load_string(): <<<XML in /in/jV2if on line 11 Warning: simplexml_load_string(): ^ in /in/jV2if on line 11 Warning: Attempt to read property "login" on false in /in/jV2if on line 13 Warning: Attempt to read property "login" on false in /in/jV2if 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:
50.45 ms | 402 KiB | 8 Q