Something like a P3 will leave a visible mark on the acoustics suite of a submarine. It's very much dependent on things like ambient noise in the sea, sea state, type of acoustic processor or towed array and acoustics operator experience. A typical detection range for such things may be around 1nm radius and up to as much as 10,000 feet. A jet aircraft however will not usually be detectable on the submarines acoustic suite but could be audibly detected by the operator at similar ranges.