Op amp voltage follower saturates (high-rail) at 0V
The first device (7812) is a voltage regulator and not an op-amp so that's easy to answer. See EDIT below following OP changing their mind.

The 2nd device (RC4558) is not a rail-to-rail op-amp and it's output cannot get within 1 volts of either supply rail. See VOM (Maximum output voltage swing) in the data sheet. The VICR (Common-mode input voltage range) is also limited so you shouldn't use inputs too close to the power rails without unexpected results.

The LM324 is OK getting to the negative (0 volt) rail but has limits like the RC4558 when getting to the positive rail.

You also need to ensure that there is enough suipply voltage on the op-amp or it won't adequately perform. For instance, the RC4558 needs a minimum supply rail of 10 volts and not 5 volts. It's all there in the data sheet but you have to get used to the terminology used.

EDIT following change by OP.

The NJM072 has both input and output voltage restrictions specified in the data sheet. Input common mode range is not guaranteed to be better than +/-11 volts on a +/- 15 volt supply. The output swing is similarly problematic (+/-12 volts on a +/- 15 volt supply). Minimum supply for this op-amp is 8 volts.