Alpha support (and its associated parameter) was added in v5.4.0, as it clearly states in the function's manpage changelog: http://php.net/imagecolorset#refsect1-function.imagecolorset-changelog
You'll have to upgrade your PHP version, or not use alpha.