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-- Test array_keys() function (basic) --FILE-- <?php echo "*** Testing array_keys()..

Decoded Output download

*** Testing array_keys() on basic array operation ***

Did this file decode correctly?

Original Code

--TEST--
Test array_keys() function (basic)
--FILE--
<?php

echo "*** Testing array_keys() on basic array operation ***\n";
$basic_arr = array("a" => 1, "b" => 2, 2 => 2.0, -23 => "asdasd",
                   array(1,2,3));
var_dump(array_keys($basic_arr));

echo "Done\n";
?>
--EXPECT--
*** Testing array_keys() on basic array operation ***
array(5) {
  [0]=>
  string(1) "a"
  [1]=>
  string(1) "b"
  [2]=>
  int(2)
  [3]=>
  int(-23)
  [4]=>
  int(3)
}
Done

Function Calls

array_keys 1

Variables

$basic_arr [{'key': 'a', 'value': 1}, {'key': 'b', 'value': 2}, {'key': 2, 'value': 2.0}, {'key': -23, 'value': 'asdasd'}, {'key': 4, 'value': [{'key': 0, 'value': 1}, {'key': 1, 'value': 2}, {'key': 2, 'value': 3}]}]

Stats

MD5 ff372125eb0b4fe4691d525caf36b7f7
Eval Count 0
Decode Time 97 ms