in reply to convert perl to php quickly

It is impossible. Good luck.