3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function start_elem($parser,$name,$attribs) { echo "<$name>"; } function end_elem($parser,$name) { echo "</$name>"; } $parser=xml_parser_create(); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); xml_set_element_handler($parser,"start_elem","end_elem"); $buf = '<F>'; echo xml_parse($parser,$buf,strlen($buf)==0);
Output for 5.0.0 - 7.1.0
1
Output for 4.3.0 - 4.4.9
<F>1