PHP 5.3 compatibility

See http://www.php.net/manual/en/migration54.new-features.php

"Function array dereferencing has been added, e.g. foo()[0]."
Merge pull request #10 from kinglozzer/patch-1

PHP 5.3 compatibility. Thanks @kinglozzer