title: static call vs. dynamic call : Which one has better performance?
body: <p>For example this is my class:</p>
  
  <pre><code>&lt;?php 
   Class Example
   {
    public function example_function()
    {
     echo "example code";
    }
   }
  ?&gt;
  </code></pre>
  
  <p>Which one of the following will be best, performance-wise?</p>
  
  <p>1)</p>
  
  <pre><code>Example::example_function();
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>$example = new Example();
  $example-&gt;example_function();
  </code></pre>
  
  <p>What is the difference between them?</p>