the struts are interchangeable. i just did this, putting 51mm 318is struts onto a 1984 318 with 45 mm tubes. everything fits, brakes and all, however there might not be a bracket for the abs sensor wire.
the 1987 325is came with 51mm struts.
all M42 318s came with 51mm struts