title: In PHP, why does </script> not show a parse error?
body: <p>I was running the following <a href="http://en.wikipedia.org/wiki/PHP" rel="noreferrer">PHP</a> code:</p>
  
  <pre><code>&lt;?php 
      &lt;/script&gt;
  ?&gt;
  </code></pre>
  
  <p>There were no parse errors and the <strong>output was</strong> "<code>?&gt;</code>" (<a href="http://ideone.com/0FbOdx" rel="noreferrer">example</a>).</p>
  
  <p>In similar cases I do get a parse error:</p>
  
  <pre><code>&lt;?php 
      &lt;/div&gt;
  ?&gt;
  </code></pre>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '&lt;' in ...</p>
  </blockquote>
  
  <p>Why doesn't <code>&lt;?php &lt;/script&gt; ?&gt;</code> give the same error?</p>