3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $emptyXml = simplexml_load_string('<root />'); $xml = simplexml_load_string('<root>foo</root>'); var_dump(!$emptyXml, empty($emptyXml)); var_dump(!$xml, empty($xml));
based on fZ7lc