title: Parse error: syntax error, unexpected '[' with php 5.3
body: <p>My script is working really fine on my xampp. Now I tried to upload it on the server, but it spat directly a</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '['</p>
  </blockquote>
  
  <p>in my face. :(</p>
  
  <p>The line which its mocking about is this one:</p>
  
  <pre><code>    $item = $xml-&gt;xpath($path)[0];
  </code></pre>
  
  <p>And I have no idea what is wrong. I tried to look on the php 5.3 changelog but did not found anything about it. (Because I have 5.3 on the server, and on xampp its an olderversion)</p>
  
  <p>The whole code block looks like this:</p>
  
  <pre><code>$path = '//item[@id="'.$id.'"]';
  if ($xml-&gt;xpath($path)) {
      $item = $xml-&gt;xpath($path)[0];
  } else {
      die('&lt;p class="error"&gt;Script Error: Code 101 - Please contact administrator&lt;/p&gt;');
  }
  </code></pre>
  
  <p>I am thankful for any help, I cannot seach [ with google and have no idea where it could come from, since on xampp its working fine</p>