If your circuit calls for a "1458 optocoupler," follow these steps:

An op-amp cannot provide electrical isolation. Connecting an op-amp across voltage domains will create ground loops and potentially damage both circuits.

1458 optocoupler datasheet