Is logic part of Philosophy or Mathematics?

I asked this question "Does programming use logic more or mathematics more" and users on some site insisted that logic was part of mathematics, I checked Wikipedia and it listed logic(symbolic, first-order, formal, etc) as part of Philosophy, not mathematics. So it has to mean logic is part of philosophy, right?

When I look at source code of programs, most of it seems to contain only symbolic logic and first order logic, math is used very sparsely in most programming, there are areas of programming like graphics, cryptography, AI etc where math is used a lot but rest of the programming is only symbolic logic.