What do you call a phrase that you end in different ways in the same sentence.

Sorry for the stupid title phrasing, If I could figure out a good way to word it, I could probably google it.

I was digging deep in my song collection and came across the old comedy classic , Have some Madeira, my dear

Which has line likes
“She lowered her standards by raising her glass
Her courage, her eyes, and his hopes”

and

“When he asked, “What in heaven?” she made no reply
Up her mind, and a dash for the door —”

It’s driving me crazy because I know there is a name for that kind of thing but I can’t remember or find it.

zeugma?

Yes, thank you very much. Good thing I didn’t decide to start at the beginning of the dictionary to look for it.

I note that the Wikipedia article Aspidistra linked to actually contains the OP’s second quote as an example.

So it does!

(I actually hadn’t noticed that…)

FWIW, Groucho specialized in that device.