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-- strtr() function --FILE-- <?php $trans = array("hello"=>"hi", "hi"=>"hello", "a"=..

Decoded Output download

--TEST--
strtr() function
--FILE--
<?php
$trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
var_dump(strtr("# hi all, I said hello world! #", $trans));
?>
--EXPECT--
string(32) "# hello All, I sAid hi planet! #"

Did this file decode correctly?

Original Code

--TEST--
strtr() function
--FILE--
<?php
$trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
var_dump(strtr("# hi all, I said hello world! #", $trans));
?>
--EXPECT--
string(32) "# hello All, I sAid hi planet! #"

Function Calls

strtr 1

Variables

$trans [{'key': 'hello', 'value': 'hi'}, {'key': 'hi', 'value': 'hello'}, {'key': 'a', 'value': 'A'}, {'key': 'world', 'value': 'planet'}]

Stats

MD5 88764737620da9ceed5ed2323ad4a362
Eval Count 0
Decode Time 95 ms