Stand on one leg and swing the other one up to the side.
You can swing your arms at the same time to help maintain balance.
Form tips
Start with a small range of motion, then as your muscles get warmer, increase how high you swing the leg to the side to gradually reach your current maximum range of motion.