_ENV
First,all the “global variables”,which means a name bound to any declaration,will be syntactically translated to _ENV.“variable”,cause, _ENV is the UpValue of the current chunk (be regarded as a anomomous function),by default,the value of _ENV is the _G
_G
_G is a table holds all the global variables(global environment)
Environment
Any table used as the value of _ENV is called an environment