title: Parse error: syntax error, unexpected '[', expecting ')'
body: <p>I have this linecode</p>
  
  <pre><code>$media = $dc-&gt;thumbnail-&gt;attributes()['url'];
  </code></pre>
  
  <p>runs fine on my local (WAMP) php 5.4.3
  but when i host it on my server cpanel then it gives this error</p>
  
  <pre><code>Parse error: syntax error, unexpected '[', expecting ')'
  </code></pre>
  
  <p>the php version on my server is 5.2.17</p>
  
  <p>i dnt see any problem with it, please help</p>