3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<HERE <!DOCTYPE dtd [ <!ENTITY ref "ent"> ]> <elt att="&ref;">a&ref;</elt> HERE; $parser = xml_parser_create(); xml_set_character_data_handler($parser, function ($parser, $data) { var_dump($data); }); // xml_set_default_handler($parser, function () {}); xml_parse($parser, $xml, true); xml_parser_free($parser);
Output for git.master_jit, git.master, rfc.property-hooks
string(1) "a" string(3) "ent"

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:
54.87 ms | 401 KiB | 8 Q