You'll need a client-side solution for that, such as JavaScript. (Remember that PHP gets processed on the server, then the results get sent to the user's browser.) There are probably a few thousand JavaScript clock scripts out there you can Google for.