$user

in modules/php/php.module

<?php
global $user;
?>