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-- Return by reference from array_reduce() callback --FILE-- <?php $array = [1, 2]; ..

Decoded Output download

--TEST--
Return by reference from array_reduce() callback
--FILE--
<?php
$array = [1, 2];
var_dump(array_reduce($array, function &($a, $b) {
    return $b;
}, 0));
?>
--EXPECT--
int(2)

Did this file decode correctly?

Original Code

--TEST--
Return by reference from array_reduce() callback
--FILE--
<?php
$array = [1, 2];
var_dump(array_reduce($array, function &($a, $b) {
    return $b;
}, 0));
?>
--EXPECT--
int(2)

Function Calls

None

Variables

None

Stats

MD5 fcec9f9c1cf67f17a0006163b9c012ec
Eval Count 0
Decode Time 100 ms