Question: how long does it take to get through immigration at philadelphia airport?
Answer: You should figure an hour to debark, get your bags, and clear customs, and then a 20 minute walk to Terminal B (if that is where your connecting flight leaves from). If your flight is late arriving, or there is some baggage or customs delay, you may have a problem.