Output context in PHP implementation