If multiple phases are added to the same point in your turn, the most recently created phase happens first. For example, say you control Sphinx of the Second Sun and its ability triggers during your postcombat main phase. Later during that same main phase, another effect gives you an additional combat phase after this main phase. The additional combat will happen first, followed by the additional beginning phase.
Sphinx of the Second Sun
The additional beginning phase will be a lot like your normal beginning phase. During the untap step, permanents will phase in or out as appropriate and you'll untap your tapped permanents. Anything that triggers "at the beginning of your upkeep" or similar will trigger during the upkeep step, and you'll eventually draw a card for your draw step.
After the additional beginning phase, the game proceeds to the ending phase (unless something has added even more phases; see below.)
Magic: The Gathering · ™ & © Wizards of the Coast · Illus. Antonio José Manzanedo
Card data via Scryfall. Rarix is fan-made; not endorsed by the rights holders.
