3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL|E_SRTICT); class Foo { const FOO = 'foo'; } class Bar extends Foo { function showFoo() { return self::FOO; } } $bar = new Bar(); var_dump($bar->showFoo());
based on qh86H