[Solved] Some code added to my php file


Having used UnPHP to decode that chunk of code (with the results here), it seems like somebody placed a backdoor access to your server in your codes.

Refer to this detailed StackOverflow answer for an almost line-by-line explanation of the obfuscated codes.

Note that all of methods of the backdoor access in your .php file is obfuscated. If you compare line-by-line with the codes posted in the answer above, you would notice that both are very, very similar (if not the same).

solved Some code added to my php file