I don't use iPhone Classic 5, however before answering your question, I have tried a few stuffs to see if it works.
I think with any device that can use auxiliary jack can connect to it. I have tried to use auxiliary jack with iPod Classic instead of docking, newer iPhone, and one Samsung.