How can i set Twitter's application in the different environment


Because now i have 4 environments ( local, dev-server, qa-server, production-server ). the problem is each environment has different callback_url.
Now my idea is creating 4 application that support in only environment. Anyone have problem like me ? How do you solve that ?