- var_dump: documentation ( source)
- get_debug_type: documentation ( source)
<?php
class myXMLReader extends XMLReader { }
$r1 = myXMLReader::XML('foo');
var_dump(get_debug_type($r1));
$r2 = new myXMLReader;
$r2->XML('foo');
var_dump(get_debug_type($r2));