title: Accurate way to measure execution times of php scripts
body: <p>I want to know how many milliseconds a PHP for-loop takes to execute. </p>
  
  <p>I know the structure of a generic algorithm, but no idea how to implement it in PHP:</p>
  
  <pre><code>Begin
  init1 = timer(); // where timer() is the amount of milliseconds from midnight
  the loop begin
  some code
  the loop end
  total = timer() - init1;
  End
  </code></pre>