title: Binary Beast API runs on local XAMPP, Parse errors on inmotionhosting.com
body: <p>This is probably a beginners problem I will later feel dumb for not figuring out, but here goes:</p>
  
  <p>I have been learning about the Binary Beast API and how to use it on a game fan site I volunteered on. The problem is that the code works flawlessly on my local XAMPP install, but when I upload it to a test server I get parse errors like this:</p>
  
  <p>Parse error: syntax error, unexpected '[', expecting ')' in /home/allsta23/public_html/drawingboard/BinaryBeastAPI/lib/BBModel.php on line 654</p>
  
  <p>I never modified any of the API libraries so the code within is exactly the same on my local install and likewise the same as the original code on github.
  <a href="https://github.com/BinaryBeast/BinaryBeast_API_PHP" rel="nofollow">https://github.com/BinaryBeast/BinaryBeast_API_PHP</a></p>
  
  <p>In this particular instance, line 654 of BBmodel looks like this:</p>
  
  <pre><code>653    if(!isset($result-&gt;result)) {
  654            var_dump(['result' =&gt; $result, 'svc' =&gt; $svc, 'args' =&gt; $args]); die();
  655    }
  </code></pre>
  
  <p>This has been driving me crazy because it doesnt have any errors when ran locally so I don't think it is a syntax error. </p>
  
  <p>Has anyone seen anything that would cause that to happen? I feel like there is a problem in one of the web server or PHP config files that is causing this to happen, but I have no idea where it would be.</p>
  
  <p>EDIT: I also forgot to add that the inmotionhosting webserver is running PHP 5.4 and my local XAMPP install is running 5.4.7 in case that matters.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Jesse</p>