Fix PHP 5.3 syntax issues

The library uses PHP 5.4+ features like function array dereferencing which breaks PHP 5.3 compatibility as stated in composer.json.
Merge pull request #9 from dkreuer/patch-1

Fix PHP 5.3 syntax issues