From Middle English any time, ony tyme, from Old English ǣniġum tīman, equivalent to any + time.
Practice speaking and memorizing "anytime" and many other words and sentences in English.