If in PHP or JS I make a change, hit F5, and get an error, that’s not any better than the IDE already showing it beforehand.
This is even worse because it can happen in prod without you ever triggering this case. For some projects, it doesn’t matter because the impact of a bug is small. For most, you put a subpar, buggy experience in front of your users, waste more time looking for the cause and debugging later with upset users, and at worst cause actual damages (depending on the project anyway).
There is a book bundle on Humble Bundle right now that goes into security and hacking, if that’s what you’re interested in.
You’re unlikely to receive any support, at least publicly, for how to do anything potentially illegal. I would recommend just not doing anything illegal or unethical anyway. If you’re interested from a security perspective, find a cybersec community, and you may get more support there.