How do I display tokens in a block using PHP code?
I dont recommend using PHP in a block for  many reasons.

I would recommend you to use proper implementation of hook_block_view and hook_block_info to do you custom PHP codes in there.