Hey, is there a way to calculate how many resources a PHP scripts uses (especially CPU usage) other than checking how long it takes for the script to execute?
Presumably you're running it on a webserver, do you have shell access aswell? If so, you could run 'top' while executing the PHP script to monitor resource changes.