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-- XHPRof: qafooprofiler_layers_enable() Author: beberlei --FILE-- <?php include_on..
Decoded Output download
--TEST--
XHPRof: qafooprofiler_layers_enable()
Author: beberlei
--FILE--
<?php
include_once dirname(__FILE__).'/common.php';
function foo($x) {
return file_get_contents(__FILE__);
}
function bar($x) {
return strlen($x);
}
echo "With layers:
";
qafooprofiler_layers_enable(array('file_get_contents' => 'io', 'strlen' => 'db', 'main()' => 'main()'));
foo("bar");
bar("baz");
$data = qafooprofiler_disable();
print_canonical($data);
echo "
Without layers:
";
qafooprofiler_layers_enable(NULL);
?>
--EXPECTF--
With layers:
db : ct= 1; wt=*;
io : ct= 1; wt=*;
main() : ct= 1; wt=*;
Without layers:
Notice: qafooprofiler_layers_enable() requires first argument to be array in %s/qafooprofiler_019.php on line %d
Did this file decode correctly?
Original Code
--TEST--
XHPRof: qafooprofiler_layers_enable()
Author: beberlei
--FILE--
<?php
include_once dirname(__FILE__).'/common.php';
function foo($x) {
return file_get_contents(__FILE__);
}
function bar($x) {
return strlen($x);
}
echo "With layers:\n";
qafooprofiler_layers_enable(array('file_get_contents' => 'io', 'strlen' => 'db', 'main()' => 'main()'));
foo("bar");
bar("baz");
$data = qafooprofiler_disable();
print_canonical($data);
echo "\nWithout layers:\n";
qafooprofiler_layers_enable(NULL);
?>
--EXPECTF--
With layers:
db : ct= 1; wt=*;
io : ct= 1; wt=*;
main() : ct= 1; wt=*;
Without layers:
Notice: qafooprofiler_layers_enable() requires first argument to be array in %s/qafooprofiler_019.php on line %d
Function Calls
dirname | 1 |
Stats
MD5 | 81492a725d2881cd031f17d5f2d4e082 |
Eval Count | 0 |
Decode Time | 85 ms |