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 use App\Models\Setting; use App\Models\Patient; use App\Models\Group; use App\..
Decoded Output download
<?php
use App\Models\Setting;
use App\Models\Patient;
use App\Models\Group;
use App\Models\Doctor;
use App\Mail\PatientCodeMail;
use App\Mail\TestsNotification;
use App\Mail\ReceiptMail;
use App\Mail\ReportMail;
use App\Mail\ResetPasswordMail;
goto fCBgr;
KPbPW:
if (!function_exists("patient_code")) {
function patient_code($patient_id)
{
goto ygugh;
rqQWT:
patient_code($patient_id);
goto T9BD7;
ygugh:
$code = mt_rand(1000, 9999) . $patient_id;
goto cBQh6;
cBQh6:
$exist = Patient::where("code", $code)->count();
goto t_1TS;
vB_y3:
Patient::where("id", $patient_id)->update(["code" => $code]);
goto nyH03;
T9BD7:
iIYXC:
goto vB_y3;
t_1TS:
if (!$exist) {
goto iIYXC;
}
goto rqQWT;
nyH03:
}
} ?>
Did this file decode correctly?
Original Code
<?php
use App\Models\Setting;
use App\Models\Patient;
use App\Models\Group;
use App\Models\Doctor;
use App\Mail\PatientCodeMail;
use App\Mail\TestsNotification;
use App\Mail\ReceiptMail;
use App\Mail\ReportMail;
use App\Mail\ResetPasswordMail;
goto fCBgr;
KPbPW:
if (!function_exists("\160\141\164\x69\x65\x6e\x74\x5f\x63\157\x64\x65")) {
function patient_code($patient_id)
{
goto ygugh;
rqQWT:
patient_code($patient_id);
goto T9BD7;
ygugh:
$code = mt_rand(1000, 9999) . $patient_id;
goto cBQh6;
cBQh6:
$exist = Patient::where("\143\x6f\144\145", $code)->count();
goto t_1TS;
vB_y3:
Patient::where("\151\x64", $patient_id)->update(["\143\157\x64\x65" => $code]);
goto nyH03;
T9BD7:
iIYXC:
goto vB_y3;
t_1TS:
if (!$exist) {
goto iIYXC;
}
goto rqQWT;
nyH03:
}
}
Function Calls
None |
Stats
MD5 | 7b7514a4d7a23294e501a54e7910bd84 |
Eval Count | 0 |
Decode Time | 41 ms |