title: zsh: bad math expression: operand expected at `'HTTP_HOST...'
body: <p>I'm trying to run the following php from the terminal:</p>
  
  <pre><code>php -r "error_reporting(E_NONE); $_SERVER['HTTP_HOST'] = 'localhost';
  require('./config/site.php'); 
  echo json_encode(array('HOST' =&gt; DB_SERVER, 'USER' =&gt; DB_USERNAME, 'PASS' =&gt; DB_PASSWORD, 'NAME' =&gt; DB_DATABASE));"
  </code></pre>
  
  <p>And I'm getting the following error:</p>
  
  <p><code>
  zsh: bad math expression: operand expected at `'HTTP_HOST...'
  </code></p>
  
  <p>Escaping the <code>=</code> has no effect and escaping the <code>[</code> gives a PHP parse error:</p>
  
  <p><code>
  PHP Parse error:  syntax error, unexpected '[', expecting identifier (T_STRING) in Command line code on line 1
  </code></p>
  
  <p>What am I doing wrong here? How can I run the code above from terminal?</p>