Test, validate and match regular expressions
This regex detects the G6 Shell PHP web shell/backdoor. It matches PHP code where a variable is initialized as an array, followed by conditional if/elseif blocks that check command execution function names (exec, passthru, system) and invoke them using user-controlled input from $_GET, $_POST, or $_REQUEST superglobals. The