<?php constant('TEST', 'foo'); class A { const FOO = 'test'; const BAR = A::FOO; const TEST = TEST; public function __construct() { echo self::BAR; } } new A();
You have javascript disabled. You will not be able to edit any code.