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 current() function : basic functionality --FILE-- <?php /* * Test basic fun..

Decoded Output download

*** Testing current() : basic functionality ***

Did this file decode correctly?

Original Code

--TEST--
Test current() function : basic functionality
--FILE--
<?php
/*
 * Test basic functionality of current()
 */

echo "*** Testing current() : basic functionality ***\n";

$array = array ('zero', 'one', 'two', 'three' => 3);
var_dump(current($array));
next($array);
var_dump(current($array));
end($array);
var_dump(current($array));
next($array);
var_dump(current($array));
?>
--EXPECT--
*** Testing current() : basic functionality ***
string(4) "zero"
string(3) "one"
int(3)
bool(false)

Function Calls

current 1

Variables

$array [{'key': 0, 'value': 'zero'}, {'key': 1, 'value': 'one'}, {'key': 2, 'value': 'two'}, {'key': 'three', 'value': 3}]

Stats

MD5 4cd07167cc4327455e04c53f6b3e3fe4
Eval Count 0
Decode Time 81 ms