title: PHP Function execution cost table
body: <p>There is a reference table that shows the execution cost of every php function?</p>
  
  <p>I know that the <em>time execution</em> is boundet to many factors and is impossible to determinate an unique value, but im looking for a 'ideological' table.</p>
  
  <p>For example,</p>
  
  <pre><code>is_dir() = cost 3
  is_file() = cost 2
  </code></pre>
  
  <p>(take it JUST as an example ;)</p>
  
  <p>If i dont remember bad, for C there is a table with cpu cycles needed to every operation..</p>
  
  <p><strong>EDIT</strong>: i read all you comment, and so there are any table for my needs.</p>
  
  <p>Anyway, i know that</p>
  
  <pre><code>is_dir('/');//is faster than
  is_dir('/a/very/long/path/to/check/');
  </code></pre>
  
  <p>But, i have some trouble to accept this situation (that, if i have understood right your words, is possible);</p>
  
  <pre><code>$a = '/';
  $b = '/a/very/long/path/to/check/';
  is_dir($a);  //time execution 0.003
  is_file($a); //time execution 0.005
  //so suppose is_dir is faster than is_file
  //(still example, function names and number are random ;)
  is_dir($b);  //time execution 0.013
  is_file($b); //time execution 0.009
  //wow, now is faster is_file()....?
  </code></pre>