In my journeys this week I came across a neat and nifty little routine known as Duff's Device. Want to see increases of 6 seconds on 5,000,000 iterations? Or 60 seconds on 50,000,000 iterations? You can read about the origin here. See the PHP code and my quick bench marking here.