As a good book once said, "Don't diddle code to make it faster – find a better algorithm." Given the speed of today's CPUs you probably can't create a compute-bound process that will differ substantially in execution time based on a thing like "PHP vs. Perl vs. Ruby vs. ..." If the program is too slow, find a better algorithm. It's just that simple.