It lasts just fine
(Source: I've done it)
The M3 has knock sensors, like everyone else.
https://www.google.com/search?q=bmw+m3+knock+sensor
If you look up engine knock on wikipedia, it will tell you the same
From:
https://en.wikipedia.org/wiki/Engine_knocking#Knock_detectio...
"Due to the large variation in fuel quality, a large number of engines now contain mechanisms to detect knocking and adjust timing or boost pressure accordingly in order to offer improved performance on high octane fuels while reducing the risk of engine damage caused by knock while running on low octane fuels.
"