Attiny85 PB4 works for analog output but not PB3?
The hardware PWM is only suported on pins with output compare altenate function on it. The pinout in your question shows Attiny13 but the rest of your question is about Attiny85, which has different capabilities from Attiny13



As you can see, only pins with PWM capability are PB0, PB1 and PB4