Optocoupler on Tinkercad acting weird
You connected 5V to the base of the transistor inside, so the transistor is turned on all the time. 

Move the 5v pin one to the right (middle pin on the 4N35, i.e. the collector), and it should work.