Heat olive oil in a skillet over medium heat. Add spinach and garlic and cook, stirring, until the spinach has wilted, 3 to 4 minutes. Drain mixture in a sieve and squeeze out excess liquid; transfer to a mixing bowl. Mix in artichoke hearts, mayonnaise, Parmesan cheese, and feta cheese and stir until all ingredients are well combined.