getConstants(); $constantPrefix = "CONSTANTVAR_"; foreach ($classConstants as $key => $val) { if (substr($key, 0, strlen($constantPrefix)) === $constantPrefix) { self::$_dumpTypeValues[$val] = strtolower(substr($key, strlen($constantPrefix))); } } } return self::$_dumpTypeValues; } } echo "works not"; $a = new A(); $a->getDumpTypeChoices(); // Set Breakpoint on sleep and inspect $a sleep(1);