iPhone adapter/spliter allows you to charge your phone and listen to music

I can only speak from experience, it is suitable for older iPhones, e.g iPhone XR. Would not be compatible for new iPhone 15.

eBay