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-- Bug #62607: array_walk_recursive move internal pointer --FILE-- <?php $arr = arra..

Decoded Output download

--TEST--
Bug #62607: array_walk_recursive move internal pointer
--FILE--
<?php
$arr = array('a'=>'b');
echo 'Before -> '.current($arr).PHP_EOL;
array_walk_recursive($arr, function(&$val){});
echo 'After -> '.current($arr);
?>
--EXPECT--
Before -> b
After -> b

Did this file decode correctly?

Original Code

--TEST--
Bug #62607: array_walk_recursive move internal pointer
--FILE--
<?php
$arr = array('a'=>'b');
echo 'Before -> '.current($arr).PHP_EOL;
array_walk_recursive($arr, function(&$val){});
echo 'After -> '.current($arr);
?>
--EXPECT--
Before -> b
After -> b

Function Calls

current 1

Variables

$arr [{'key': 'a', 'value': 'b'}]

Stats

MD5 af6987d4dc8d36b7af36ff12f61b516f
Eval Count 0
Decode Time 102 ms