3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<HERE <!DOCTYPE test [ <!ENTITY test "test"> ]> <test foo="&test;">&test;</test> HERE; $parser = xml_parser_create(); xml_parse_into_struct($parser, $xml, $vals, $idx); print_r($vals); xml_parser_free($parser);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [tag] => TEST [type] => complete [level] => 1 [attributes] => Array ( [FOO] => test ) [value] => test ) )

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:
58.29 ms | 402 KiB | 8 Q