Close #5: Lower PHP version requirement to 5.2

Replaced anonymous function use for clients using PHP <= 5.2