Make the code compatible with php 5.3

Thanks for this awesome library! Saved me a lot of trouble. But it is for 5.4+ only since it used short array syntax.

This patch will make it work on 5.3 (and maybe 5.2 as well).