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-- array_walk() tests --FILE-- <?php function foo($v1, $v2, $v3) { var_dump($v1..
Decoded Output download
--TEST--
array_walk() tests
--FILE--
<?php
function foo($v1, $v2, $v3) {
var_dump($v1);
var_dump($v2);
var_dump($v3);
}
$var = array(1,2);
var_dump(array_walk($var, "foo", "data"));
function foo2($v1, $v2, $v3) {
throw new Exception($v3);
}
try {
var_dump(array_walk($var,"foo2", "data"));
} catch (Exception $e) {
var_dump($e->getMessage());
}
echo "Done
";
?>
--EXPECT--
int(1)
int(0)
string(4) "data"
int(2)
int(1)
string(4) "data"
bool(true)
string(4) "data"
Done
Did this file decode correctly?
Original Code
--TEST--
array_walk() tests
--FILE--
<?php
function foo($v1, $v2, $v3) {
var_dump($v1);
var_dump($v2);
var_dump($v3);
}
$var = array(1,2);
var_dump(array_walk($var, "foo", "data"));
function foo2($v1, $v2, $v3) {
throw new Exception($v3);
}
try {
var_dump(array_walk($var,"foo2", "data"));
} catch (Exception $e) {
var_dump($e->getMessage());
}
echo "Done\n";
?>
--EXPECT--
int(1)
int(0)
string(4) "data"
int(2)
int(1)
string(4) "data"
bool(true)
string(4) "data"
Done
Function Calls
array_walk | 1 |
Stats
MD5 | 4986529c5ff9d1f603d43da664ba52ab |
Eval Count | 0 |
Decode Time | 81 ms |