Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto HRnI2; zW6SQ: require __DIR__ . "\57\x2e\x2e\x2f\56\56\x2f\56\56\57\56\x2e\x2..

Decoded Output download

<?php 
 goto HRnI2; zW6SQ: require __DIR__ . "/../../../../../sys/Class/Models/Bot.php"; goto HOYsd; dc80N: function botName(int $id) { $bot = (new Bot())->findById($id); return $bot->name . " - @" . $bot->username; } goto sA8ou; AjlJy: if (isset($purchases)) { $now = strtotime("now"); foreach ($purchases as $purchase) { $bot_name = botName($purchase->bot_id); $purchased = $now - strtotime($purchase->created_at); $datediff = round($purchased / (60 * 60 * 24)); if ($datediff > 7) { return; } isset($data["week"][date("d", strtotime($purchase->created_at)) . "/" . date("m", strtotime($purchase->created_at))]) ? $data["week"][date("d", strtotime($purchase->created_at)) . "/" . date("m", strtotime($purchase->created_at))]++ : ($data["week"][date("d", strtotime($purchase->created_at)) . "/" . date("m", strtotime($purchase->created_at))] = 1); isset($data["bots"][$bot_name]) ? $data["bots"][$bot_name]++ : ($data["bots"][$bot_name] = 1); } } goto BlHKx; sA8ou: $data = array("week" => array(), "bots" => array()); goto AjlJy; HOYsd: $purchases = (new Purchase())->find("status > :status", "status=1")->fetch(true); goto dc80N; GY10w: require __DIR__ . "/../../../../../sys/Class/Models/Purchase.php"; goto zW6SQ; HRnI2: require __DIR__ . "/../../../../../sys/protect.php"; goto GY10w; BlHKx: echo json_encode($data); ?>

Did this file decode correctly?

Original Code

<?php
 goto HRnI2; zW6SQ: require __DIR__ . "\57\x2e\x2e\x2f\56\56\x2f\56\56\57\56\x2e\x2f\56\x2e\57\x73\x79\163\57\x43\x6c\141\163\x73\x2f\115\157\144\x65\x6c\163\57\x42\x6f\164\x2e\160\150\160"; goto HOYsd; dc80N: function botName(int $id) { $bot = (new Bot())->findById($id); return $bot->name . "\x20\x2d\x20\100" . $bot->username; } goto sA8ou; AjlJy: if (isset($purchases)) { $now = strtotime("\156\x6f\167"); foreach ($purchases as $purchase) { $bot_name = botName($purchase->bot_id); $purchased = $now - strtotime($purchase->created_at); $datediff = round($purchased / (60 * 60 * 24)); if ($datediff > 7) { return; } isset($data["\x77\145\x65\x6b"][date("\144", strtotime($purchase->created_at)) . "\57" . date("\x6d", strtotime($purchase->created_at))]) ? $data["\167\x65\x65\153"][date("\x64", strtotime($purchase->created_at)) . "\57" . date("\155", strtotime($purchase->created_at))]++ : ($data["\x77\x65\145\153"][date("\144", strtotime($purchase->created_at)) . "\x2f" . date("\155", strtotime($purchase->created_at))] = 1); isset($data["\142\x6f\164\163"][$bot_name]) ? $data["\142\x6f\164\163"][$bot_name]++ : ($data["\142\157\x74\x73"][$bot_name] = 1); } } goto BlHKx; sA8ou: $data = array("\x77\x65\x65\x6b" => array(), "\x62\x6f\x74\x73" => array()); goto AjlJy; HOYsd: $purchases = (new Purchase())->find("\163\164\x61\164\x75\163\x20\x3e\40\72\163\164\141\164\165\163", "\x73\x74\141\164\165\163\x3d\61")->fetch(true); goto dc80N; GY10w: require __DIR__ . "\57\56\x2e\x2f\56\56\x2f\56\56\57\56\x2e\57\x2e\x2e\x2f\163\171\x73\x2f\x43\x6c\x61\x73\163\x2f\x4d\x6f\x64\145\154\163\x2f\120\x75\x72\143\150\141\x73\x65\x2e\160\x68\x70"; goto zW6SQ; HRnI2: require __DIR__ . "\x2f\x2e\56\57\56\x2e\57\x2e\56\57\56\x2e\57\56\56\57\163\171\163\x2f\x70\x72\157\164\x65\x63\x74\56\x70\150\160"; goto GY10w; BlHKx: echo json_encode($data);

Function Calls

None

Variables

None

Stats

MD5 53be9a6dd1d91e27cc5a7849a1b479b7
Eval Count 0
Decode Time 40 ms