title: Curly braces or colon-endif statements in PHP - which one provides better performance and code compatibility?
body: <p>I was looking through many snippets of code, and I have found that people can use the following two methods in an <code>if</code> statement:</p>
  
  <p>Method 1:</p>
  
  <pre><code>&lt;?php
    if ($condition) {
      // Do this
    }
  ?&gt;
  </code></pre>
  
  <p>Method 2:</p>
  
  <pre><code>&lt;?php
    if ($condition):
      // Do this
    endif;
  ?&gt;
  </code></pre>
  
  <p>So which method is more compatible with PHP compilers and versions with PHP, or is there no discernible difference between the two?</p>