title: PHP version that allows property assignment BEYOND straight literals?
body: <p>I am new to PHP, but very experienced with programming. Looking at the PHP web site page on properties: <a href="http://www.php.net/manual/en/language.oop5.properties.php" rel="nofollow">http://www.php.net/manual/en/language.oop5.properties.php</a> I saw this example.</p>
  
  <pre><code>&lt;?php
  class SimpleClass
  {
     // invalid property declarations:
     public $var1 = 'hello ' . 'world';
     public $var2 = &lt;&lt;&lt;EOD
  hello world
  EOD;
     public $var3 = 1+2;
     public $var4 = self::myStaticMethod();
     public $var5 = $myVar;
  
     // valid property declarations:
     public $var6 = myConstant;
     public $var7 = array(true, false);
  
     // This is allowed only in PHP 5.3.0 and later.
     public $var8 = &lt;&lt;&lt;'EOD'
  hello world
  EOD;
  }
  ?&gt; 
  </code></pre>
  
  <p>Running this example returns the error: PHP Parse error:  syntax error, unexpected '.', expecting ',' or ';' in test.php on line 5</p>
  
  <p>In fact, the php.net example for SimpleClass contains all sort of property assignments that are NOT to straight literals, all of which seem to raise errors; phpinfo() says the version is PHP Version 5.2.4.</p>
  
  <p>Is this a problem associated with the PHP version?</p>