The official Composer-based upgrading instruction does not work for me because of «Allowed memory size exhausted»

Publish here the full exact system output for each step of the official upgrading instruction.