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='cGhwaW..

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 5316d8f21dbc1744509ea636c6d0d531
Eval Count 2
Decode Time 83 ms