3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A extends DOMDocument { const TEST = false; public function loadXml() { var_dump(static::TEST); } } class B extends A { const TEST = true; } $b = new B; $b->loadXml();
based on eGOHo
Output for 7.0.0 - 7.2.0
Warning: Declaration of A::loadXml() should be compatible with DOMDocument::loadXML($source, $options = NULL) in /in/OlH17 on line 10 bool(true)
Output for 5.4.10 - 5.6.28
Strict Standards: Declaration of A::loadXml() should be compatible with DOMDocument::loadXML($source, $options = NULL) in /in/OlH17 on line 10 bool(true)
Output for 5.3.20 - 5.3.29
Strict Standards: Declaration of A::loadXml() should be compatible with that of DOMDocument::loadXML() in /in/OlH17 on line 10 bool(true)