The invention relates to a synthetic phytase with elevated thermostability, elevated stability to acids at p H 2, elevated stability to pepsin and with a broadened active p H range, and to an isolated nucleic acid sequence coding for a synthetic phytase and to the use of the phytase in an animal feed for reducing the phosphate content in the slurry and to animal feed additives and animal feeds comprising the synthetic phytase.