3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<?xml version=\"1.0\" ?>\n<Device>\n<Data bar=\"snafu\">some data</Data>\n<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 4: parser error : Premature end of data in tag Device line 4 in /in/7neHt on line 3 Warning: simplexml_load_string(): <Device> in /in/7neHt on line 3 Warning: simplexml_load_string(): ^ in /in/7neHt on line 3 Warning: simplexml_load_string(): Entity: line 4: parser error : Premature end of data in tag Device line 2 in /in/7neHt on line 3 Warning: simplexml_load_string(): <Device> in /in/7neHt on line 3 Warning: simplexml_load_string(): ^ in /in/7neHt 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:
45.3 ms | 402 KiB | 8 Q