title: installing aws php sdk - unexpected variables
body: <p>I'm trying to use the AWS php sdk, and having some issues getting set up. I'm getting this error when I run my php script that requires the autoloader: </p>
  
  <pre><code>Parse error: syntax error, unexpected '$value' (T_VARIABLE) in /[directory path]/Aws/functions.php on line 36
  </code></pre>
  
  <p>I looked in that document, and line 36 is the one that begins with <code>if ($pred($value))</code>.</p>
  
  <pre><code>function filter($iterable, callable $pred){
      foreach ($iterable as $value) {
          if ($pred($value)) {
              yield $value;
          }
      }
  }
  </code></pre>
  
  <p>Not really sure how to work around this, so any tips would be greatly appreciated. Things I've tried: installing with composer. installing with .zip. </p>
  
  <p>Followed these steps: <a href="http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html" rel="noreferrer">http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html</a></p>