3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { const TEST = false; public function test() { var_dump($this, static::TEST, self::TEST); } } class B extends A { const TEST = true; public function test() { A::test(); parent::test(); } } $b = new B; $b->test();
based on 0kJiI