Just to be sure that he asked about M42 and not the M43..
M40B18 - 1.8L SOHC 8 valve used in the E30 and prefacelift E36 318i (Timing belt) , 115bhp
M42B18 - 1.8L DOHC 16 valve used in the E30 and E36 318is. (duplex timing chain), 140bhp
M43B18 - 1.8L SOHC 8 valve used in the facelifted E36 318i (single timing chain), 115bhp
M43TUB19 - 1.9 SOHC 8 valve used in the pre-facelift E46 318i, 118bhp
N42B20 - 2.0 DOHC Valvetronic 16 valve used in the facelifted E46 318i, 143bhp...