3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A extends DOMDocument { const TEST = false; public function loadXml($source, $options = NULL) { var_dump(static::TEST); } } class B extends A { const TEST = true; } $b = new B; $b->loadXml();
based on OlH17
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function A::loadXml(), 0 passed in /in/ibPNY on line 17 and at least 1 expected in /in/ibPNY:6 Stack trace: #0 /in/ibPNY(17): A->loadXml() #1 {main} thrown in /in/ibPNY on line 6
Process exited with code 255.
Output for 5.3.20 - 7.0.20
Warning: Missing argument 1 for A::loadXml(), called in /in/ibPNY on line 17 and defined in /in/ibPNY on line 6 bool(true)