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 $subject='any_thing_you_can_write'; $pattern="/^.*$/e"; $payload='cGh..

Decoded Output download

<?php 
    $subject='any_thing_you_can_write'; 
    $pattern="/^.*$/e"; 
    $payload='cGhwaW5mbygpOw=='; 
    $replacement=pack('H*', '406576616c286261736536345f6465636f646528')."\"$payload\"))"; 
    preg_replace($pattern, $replacement , $subject); 
?>

Did this file decode correctly?

Original Code

<?php
    $subject='any_thing_you_can_write';
    $pattern="/^.*$/e";
    $payload='cGhwaW5mbygpOw==';
    $replacement=pack('H*', '406576616c286261736536345f6465636f646528')."\"$payload\"))";
    preg_replace($pattern, $replacement , $subject);
?>

Function Calls

pack 1
phpinfo 1
preg_replace 1
base64_decode 1

Variables

$pattern /^.*$/e
$payload cGhwaW5mbygpOw==
$subject any_thing_you_can_write
$replacement @eval(base64_decode("cGhwaW5mbygpOw=="))

Stats

MD5 333d2b95473b39511a22c3b7ca76c025
Eval Count 2
Decode Time 128 ms