Does Googlebot crawl the dynamic variable name aside from its value? For example in my PHP I use the variable
_company_name. In the front-end is is
_company_name saved in bot crawl also?
Except in the case of misconfiguration, the PHP code is executed on the server and what gets transmitted to the client is only the result of the execution which may be a mix of static HTML + dynamic parts generated by PHP code. That is the same no matter who the HTTP client is; a real browser used by a human, or an indexing robot.
Said differently, when your site is being indexed, your PHP source code is not seen at all, so you are free in this regard to do in it whatever you want, naming-wise or otherwise.