What is that 2" elbow in the background? You managed to take the picture precisely so it was obscured. If that is for a tub or shower, then it IS both illegal and will not work. IF you had used a "closet bend" it would have had an even "sharper bend" than your elbow so it is okay, but the sanitary tee it goes into is NOT. Your toilet vent is also NOT according to codes. According to your picture, you have a 2x6 sticking INTO the 2" vertical pipe at the left. How did you do that? as fpr the second part, "Will it work", almost every cockamammy idea DIYers come up with "will work" which is why they want to do it their way. The questions then become "how well will it work and for how long".