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_count_values() --FILE-- <?php $arrays = array ( array (), array (0)..
Decoded Output download
--TEST--
array_count_values()
--FILE--
<?php
$arrays = array (
array (),
array (0),
array (1),
array (-1),
array (0, 0),
array (0, 1),
array (1, 1),
array (1, "hello", 1, "world", "hello"),
array ("hello", "world", "hello"),
array ("", "world", "", "hello", "world", "hello", "hello", "world", "hello"),
array (0, array (1, "hello", 1, "world", "hello")),
array (1, array (1, "hello", 1, "world", "hello"), array (1, "hello", 1, "world", "hello"), array (1, "hello", 1, "world", "hello")),
);
foreach ($arrays as $item) {
var_dump (@array_count_values ($item));
echo "
";
}
?>
--EXPECT--
array(0) {
}
array(1) {
[0]=>
int(1)
}
array(1) {
[1]=>
int(1)
}
array(1) {
[-1]=>
int(1)
}
array(1) {
[0]=>
int(2)
}
array(2) {
[0]=>
int(1)
[1]=>
int(1)
}
array(1) {
[1]=>
int(2)
}
array(3) {
[1]=>
int(2)
["hello"]=>
int(2)
["world"]=>
int(1)
}
array(2) {
["hello"]=>
int(2)
["world"]=>
int(1)
}
array(3) {
[""]=>
int(2)
["world"]=>
int(3)
["hello"]=>
int(4)
}
array(1) {
[0]=>
int(1)
}
array(1) {
[1]=>
int(1)
}
Did this file decode correctly?
Original Code
--TEST--
array_count_values()
--FILE--
<?php
$arrays = array (
array (),
array (0),
array (1),
array (-1),
array (0, 0),
array (0, 1),
array (1, 1),
array (1, "hello", 1, "world", "hello"),
array ("hello", "world", "hello"),
array ("", "world", "", "hello", "world", "hello", "hello", "world", "hello"),
array (0, array (1, "hello", 1, "world", "hello")),
array (1, array (1, "hello", 1, "world", "hello"), array (1, "hello", 1, "world", "hello"), array (1, "hello", 1, "world", "hello")),
);
foreach ($arrays as $item) {
var_dump (@array_count_values ($item));
echo "\n";
}
?>
--EXPECT--
array(0) {
}
array(1) {
[0]=>
int(1)
}
array(1) {
[1]=>
int(1)
}
array(1) {
[-1]=>
int(1)
}
array(1) {
[0]=>
int(2)
}
array(2) {
[0]=>
int(1)
[1]=>
int(1)
}
array(1) {
[1]=>
int(2)
}
array(3) {
[1]=>
int(2)
["hello"]=>
int(2)
["world"]=>
int(1)
}
array(2) {
["hello"]=>
int(2)
["world"]=>
int(1)
}
array(3) {
[""]=>
int(2)
["world"]=>
int(3)
["hello"]=>
int(4)
}
array(1) {
[0]=>
int(1)
}
array(1) {
[1]=>
int(1)
}
Function Calls
array_count_values | 1 |
Stats
MD5 | 45a9de3c93754ce718d4d982bb210cfd |
Eval Count | 0 |
Decode Time | 125 ms |