3v4l.org

run code in 200+ php & hhvm versions
<?php $doc = new DOMDocument; $doc->loadHTML('<html><body></body></html>'); $e = $doc->getElementsByTagname('html')->item(0); echo get_class($e->firstChild); // DOMElement new ReflectionProperty('DOMElement', 'firstChild'); // throws
based on XXFp9
Output for 7.1.25 - 7.3.2
DOMElement Fatal error: Uncaught ReflectionException: Property DOMElement::$firstChild does not exist in /in/oQWMn:7 Stack trace: #0 /in/oQWMn(7): ReflectionProperty->__construct('DOMElement', 'firstChild') #1 {main} thrown in /in/oQWMn on line 7
Process exited with code 255.