For voltage independency, use a resistor to regulate the current and a Zener to regulate voltage, like this:
simulate this circuit – Schematic created using CircuitLab
With a 30k resistor, this will output 4.99V and use only about 234uA @ 12Vin.
In this case:
R1 is absorbingconsuming 234uA x (12V - 4.99V) = 1.64mW
D1 is absorbingconsuming 234uA x 4.99V = 1.17mW
Total power consumption: 2.81mW (when input is high)