opto-coupler: transistor vs logic

What ever made you think that would work?
I would imagin that is worse than ever.