3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<?xml version=\"1.0\" ?><Device><Data bar=\"snafu\">some data</Data><Device>"; $xml = simplexml_load_string($xml); var_dump($xml);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 1: parser error : Premature end of data in tag Device line 1 in /in/lXC2U on line 3 Warning: simplexml_load_string(): <?xml version="1.0" ?><Device><Data bar="snafu">some data</Data><Device> in /in/lXC2U on line 3 Warning: simplexml_load_string(): ^ in /in/lXC2U on line 3 Warning: simplexml_load_string(): Entity: line 1: parser error : Premature end of data in tag Device line 1 in /in/lXC2U on line 3 Warning: simplexml_load_string(): <?xml version="1.0" ?><Device><Data bar="snafu">some data</Data><Device> in /in/lXC2U on line 3 Warning: simplexml_load_string(): ^ in /in/lXC2U on line 3 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.8 ms | 402 KiB | 8 Q