Can I use php inside Big Commerce's templates? Does it need to be inside of a script tag? What would example "Hello world" code look like?
No, you can't. I hate to make this a link only answer, but there really isn't anything else to say.