title: Initializing PHP class property declarations with simple expressions yields syntax error
body: <p>According to the PHP docs, one can initialize properties in classes with the following restriction:</p>
  
  <p>"This declaration may include an initialization, but this initialization must be a constant value--that is, it must be able to be evaluated at compile time and must not depend on run-time information in order to be evaluated."</p>
  
  <p>I'm trying to initialize an array and having some issues. While this works fine:</p>
  
  <pre><code>public $var = array(
      1 =&gt; 4,
      2 =&gt; 5,
  );
  </code></pre>
  
  <p>This creates a syntax error:</p>
  
  <pre><code>public $var = array(
      1 =&gt; 4,
      2 =&gt; (4+1),
  );
  </code></pre>
  
  <p>Even this isn't accepted:</p>
  
  <pre><code>public $var = 4+1;
  </code></pre>
  
  <p>which suggests it's not a limitation of the array() language construct.</p>
  
  <p>Now, the last time I checked, "4+1" equated to a constant value that not only should be accepted, but should in fact be optimized away. In any case, it's certainly able to be evaluated at compile-time.</p>
  
  <p>So what's going on here? Is the limitation really along the lines of "cannot be any calculated expression at all", versus any expression "able to be evaluated at compile time"? The use of "evaluated" in the doc's language suggests that simple calculations are permitted, but alas....</p>
  
  <p>If this is a bug in PHP, does anyone have a bug ID? I tried to find one but didn't have any luck.</p>