The reprise of the Kingdom Hearts II version contains the secondary melody, but played only on the piano.
The Kingdom Hearts II version transformed "Dearly Beloved" into a full orchestral piece (although the piano remains dominant), containing only the secondary melody.
The Kingdom Hearts Re: Chain of Memories version contains the original melody played on the piano, along with a new secondary melody played in the background by a synthesized instrument.
The Kingdom Hearts: Chain of Memories version contains the original melody played on the piano, along with backing played in the background by synthesized voices.
The reprise of the original still contains the original melody, but this time combines piano and mallets.
The original version of "Dearly Beloved" was composed solely on the piano.