I can't believe your teacher allows this in his/her classroom. This was a somewhat standard demo in the 40s and 50s, but white phosphorous is so dangerous, no one will touch it anymore. Have you seen this done? Does your teacher set it up for you? And, for god's sake, why are you looking this up on the internet!?!? That is the last place you should look. If you get white phosphorous on your skin, you have to cut it off with a knife. You're screwed. You'll get horribly scarred and burned. The other great thing about it is that it's toxic. It takes very little to be lethal. You'll have to excuse me if I'm skeptical that your teacher wants you to do this or knows what it could do.
If you already know that the CS2 evaporates to allow the P4 react with the air, what don't you understand about the fire and barking? Look this up in some old chemistry texts. Try and find some old lab manuals or demonstration books in your school or your library. The older demo books had things like this in them.