the iOS app Shazam offers a free trial period for Apple Music. Look for 'Shazam Exclusive' when opening the app. The QR code can also be found on the Shazam website (go to deal).
With the Shazam app you get:
5 months free for new customers
2 months free for former testers (including those who have already participated in a Shazam campaign)
Only applies to individual subscriptions.