Another thing you can't do with PHP

I want to run a test that should take less than a second but could perhaps get into a longer / infinite loop, so I want to set a timer interrupt to go off in 1 seconds time and handle the exception it generates to force a test failure.

What is the probability of being able to do this with PHP?