title: syntax error, unexpected '$_SERVER' (T_VARIABLE)
body: <p>I have class with constant variable but I get this error</p>
  
  <pre><code>syntax error, unexpected '$_SERVER' (T_VARIABLE)
  </code></pre>
  
  <p><strong>Here is my code</strong></p>
  
  <pre><code>&lt;?php
  
  namespace common\models;
  
  class EConstant
  {
  
      ....
      const HomeUrl = 'http://'.$_SERVER['SERVER_NAME'].'/someweb/';
      ....
  
  }
  </code></pre>
  
  <p>What wrong with my code?</p>