You kinda answered the question The ECU will detect a ping on 87 & adjust to optimize timing by retarding timing to it's set variables
higher octane.wile not instantly , but will cause an adjustment to optimize timing
91 octane is the max the 4.0 needs any way
That is what modern computer...