M4P (MPEG-4 Protected) is a digital audio file extension for the AAC (Advanced Audio Codec) container format. It uses lossy compression and is an audio-only file. In most cases, M4P files are purchased on Apple iTunes, which means they are DRM-protected. M4A is the unprotected version of M4P.
M4R is a filename extension for AAC format, which is developed by Apple Inc. It is typically used to save custom iPhone ringtones from Apple iTunes. M4R can only be created from iTunes purchased songs and is usually DRM protected. It can open on iTunes, VLC Media Player, Apple QuickTime Player, and more.