Often I find myself needing to know which way of performing a task in PHP is the fastest. The code below let's you easily test snippets of code to see how long it takes to run. PLAIN TEXT PHP: /* Set up variables */ $testcount = 10; $iterations = 100000; for ($x=0;$x<$testcount;$x++) { $starttime = [...]
↧