<?php class Foo { const BAR = 1; public function test() { return constant('self::BAR'); } } var_dump((new Foo)->test());
You have javascript disabled. You will not be able to edit any code.