如何使用goto语句解码php代码?


我有几个大文件,如下所示:

public function index()
{
    goto E9e2246508a1d047;
    b59f99a7185ea4f4:
    return View("\x65\155\160\154\x6f\171\x65\162\56\x74\x72\x61\156\163\141\x63\x74\x69\x6f\156\x73", ["\x70\x61\147\x65" => $F44ac1942f77c961]);
    goto b4ef380f386bfff0;
    E021694d1d524d6a:
    $F44ac1942f77c961 = $C52f2627c8748472->lastpage();
    goto b59f99a7185ea4f4;
    E9e2246508a1d047:
    $C52f2627c8748472 = UserTransaction::where("\165\x73\145\162\x5f\x69\x64", Auth::id())->orderBy("\143\x72\x65\141\164\x65\x64\x5f\141\x74", "\x61\163\x63")->paginate(10);
    goto E021694d1d524d6a;
    b4ef380f386bfff0:
}

从UnPHP - The Online PHP Decoder中我将其解码为:

public function index()
{
    goto E9e2246508a1d047;
    b59f99a7185ea4f4:
    return View("employer.transactions", ["page" => $F44ac1942f77c961]);
    goto b4ef380f386bfff0;
    E021694d1d524d6a:
    $F44ac1942f77c961 = $C52f2627c8748472->lastpage();
    goto b59f99a7185ea4f4;
    E9e2246508a1d047:
    $C52f2627c8748472 = UserTransaction::where("user_id", Auth::id())->orderBy("created_at", "asc")->paginate(10);
    goto E021694d1d524d6a;
    b4ef380f386bfff0:
}

变量的名称对我来说并不是很重要(不过最好是真的)。

但我想删除goto命令,并有一个干净的代码。

转载请注明出处:http://www.56zzk.com/article/20230526/2099800.html