PHP runtime type checking
<p>I am trying to figure out the order in which PHP check types/object during runtime. So I can become a better coder. Thanks</p>

<p>Which type do php check first. Does it validate if a object is Boolean first? null? array?</p>

<p>which faster:</p>

<pre><code>if (ID != null)

if (ID !== false)

if (ID == 0)
</code></pre>
