Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Testing mb_eregi_replace() function --EXTENSIONS-- mbstring --SKIPIF-- <?php func..

Decoded Output download

--TEST--
Testing mb_eregi_replace() function
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_eregi_replace') or die("skip mb_eregi_replace() is not available in this build");
?>
--FILE--
<?php
function do_translit($st) {
    $replacement = array(
        ""=>"i",""=>"c",""=>"u",""=>"k",""=>"e",""=>"n",
        ""=>"g",""=>"sh",""=>"sh",""=>"z",""=>"x",""=>"\'",
        ""=>"f",""=>"i",""=>"v",""=>"a",""=>"p",""=>"r",
        ""=>"o",""=>"l",""=>"d",""=>"zh",""=>"ie",""=>"e",
        ""=>"ya",""=>"ch",""=>"c",""=>"m",""=>"i",""=>"t",
        ""=>"\'",""=>"b",""=>"yu",
        ""=>"I",""=>"C",""=>"U",""=>"K",""=>"E",""=>"N",
        ""=>"G",""=>"SH",""=>"SH",""=>"Z",""=>"X",""=>"\'",
        ""=>"F",""=>"I",""=>"V",""=>"A",""=>"P",""=>"R",
        ""=>"O",""=>"L",""=>"D",""=>"ZH",""=>"IE",""=>"E",
        ""=>"YA",""=>"CH",""=>"C",""=>"M",""=>"I",""=>"T",
        ""=>"\'",""=>"B",""=>"YU",
    );

    foreach($replacement as $i=>$u) {
        $st = mb_eregi_replace($i,$u,$st);
    }
    return $st;
}

mb_regex_encoding('ISO-8859-1');
echo do_translit("");
?>
--EXPECT--
Pear
--CREDITS--
Testfest Wuerzburg 2009-06-20 (modified by rui 2011-10-15)

Did this file decode correctly?

Original Code

--TEST--
Testing mb_eregi_replace() function
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_eregi_replace') or die("skip mb_eregi_replace() is not available in this build");
?>
--FILE--
<?php
function do_translit($st) {
    $replacement = array(
        ""=>"i",""=>"c",""=>"u",""=>"k",""=>"e",""=>"n",
        ""=>"g",""=>"sh",""=>"sh",""=>"z",""=>"x",""=>"\'",
        ""=>"f",""=>"i",""=>"v",""=>"a",""=>"p",""=>"r",
        ""=>"o",""=>"l",""=>"d",""=>"zh",""=>"ie",""=>"e",
        ""=>"ya",""=>"ch",""=>"c",""=>"m",""=>"i",""=>"t",
        ""=>"\'",""=>"b",""=>"yu",
        ""=>"I",""=>"C",""=>"U",""=>"K",""=>"E",""=>"N",
        ""=>"G",""=>"SH",""=>"SH",""=>"Z",""=>"X",""=>"\'",
        ""=>"F",""=>"I",""=>"V",""=>"A",""=>"P",""=>"R",
        ""=>"O",""=>"L",""=>"D",""=>"ZH",""=>"IE",""=>"E",
        ""=>"YA",""=>"CH",""=>"C",""=>"M",""=>"I",""=>"T",
        ""=>"\'",""=>"B",""=>"YU",
    );

    foreach($replacement as $i=>$u) {
        $st = mb_eregi_replace($i,$u,$st);
    }
    return $st;
}

mb_regex_encoding('ISO-8859-1');
echo do_translit("");
?>
--EXPECT--
Pear
--CREDITS--
Testfest Wuerzburg 2009-06-20 (modified by rui 2011-10-15)

Function Calls

function_exists 1
mb_regex_encoding 1

Variables

None

Stats

MD5 c47a2c18769256aa1a16cb5a530153d5
Eval Count 0
Decode Time 89 ms