PHP 5.3+ class constant extractor