Step 1: What we are looking for:
We want a component that holds a steady output voltage. That means its voltage must hardly change when the current through it changes.
Step 2: Use the I-V curve:
In the reverse breakdown region of a Zener diode the I-V curve is almost vertical at $V = V_Z$. A vertical curve means a large change in current gives almost no change in voltage. That is exactly the property of a regulator.
Step 3: Compare with the rest:
A transistor controls a large current by a small input signal, so it amplifies or switches. A transformer only steps AC voltage up or down. A photodiode produces current in response to light. None of these has a fixed-voltage characteristic.
Final Answer:
A Zener diode is used as a voltage regulator, which is option 3.
\[ \boxed{\text{Zener diode}} \]