title: if statement says true to a null variable
body: <p>What is happening here? Is it to late for my brain?</p>
  
  <p>I have a php file containing <strong>exaclty</strong> the code below.</p>
  
  <pre><code>&lt;?php
  
  $foo = 'foo';
  
  $bar = null;
  
  switch ($foo) {
      default:
      case 'foo':
          if ($bar) {
              echo 'true';
          } else {
              echo 'false';
          }
  }
  </code></pre>
  
  <p>Prints <code>true</code> when run in the browser but <code>false</code> when run on command line... HOW? I noticed when I remove the line <code>default:</code> it works, but how should this whole switch statement be related to this? It's still a simple <code>if (null) { doing this anyway }</code></p>
  
  <p><strong>PHP 7.0.13</strong>
  <strong>Apache/2.4.18</strong></p>
  
  <p>And yes... I cleared my browser cache, hit ctrl+f5... I even changed the scripts file name.</p>
  
  <p><strong>UPDATE:</strong>
  After making changes to this simple file... (just adding whitespaces to the end) and hitting f5 in the browser it says <code>false</code> <strong>once</strong> but than <code>true</code> again... no matter what I do. I really don't get it.</p>
  
  <p><strong>UPDATE:</strong>
  My PHP version just got updated from 7.0.13 to 7.0.15. Guess what... still the same output:</p>
  
  <p><strong>Apache/Browser: true</strong></p>
  
  <p><strong>Console: false</strong></p>