From my -limited- experience with 5W40 and 10W40 oil in my old diesel (oil cooled turbo, fuel dilution, small sump = less than ideal conditions), pcmo 10W40 don't resist as well as good quality 5W40, and obviously 15W40 oils. That's only my opinion over the limited oils I've tried, mainly big brands entry levels 10W40.
Now HDEO 10W40 like Shell Rimula was another thing, and I have currently good results with some Total 10W50.