From Princeton Junction (which is roughly halfway between PHL and EWR) to JFK, here is the Google Maps estimate of drive time, departing late this afternoon. Day of week and time of day can significantly affect drive time:

Edited to add: Of course, additional time must be allowed to get from your JFK parking lot to your departure terminal.