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_chunk() - variation 31 --FILE-- <?php $array = array (1 => 0); var_dump ($a..

Decoded Output download

--TEST--
array_chunk() - variation 31
--FILE--
<?php
$array = array (1 => 0);
var_dump ($array);
for ($i = 1; $i < (sizeof($array) + 1); $i++) {
    echo "[$i]
";
    var_dump (array_chunk ($array, $i));
    var_dump (array_chunk ($array, $i, TRUE));
    var_dump (array_chunk ($array, $i, FALSE));
    echo "
";
}
?>
--EXPECT--
array(1) {
  [1]=>
  int(0)
}
[1]
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(0)
  }
}
array(1) {
  [0]=>
  array(1) {
    [1]=>
    int(0)
  }
}
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(0)
  }
}

Did this file decode correctly?

Original Code

--TEST--
array_chunk() - variation 31
--FILE--
<?php
$array = array (1 => 0);
var_dump ($array);
for ($i = 1; $i < (sizeof($array) + 1); $i++) {
    echo "[$i]\n";
    var_dump (array_chunk ($array, $i));
    var_dump (array_chunk ($array, $i, TRUE));
    var_dump (array_chunk ($array, $i, FALSE));
    echo "\n";
}
?>
--EXPECT--
array(1) {
  [1]=>
  int(0)
}
[1]
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(0)
  }
}
array(1) {
  [0]=>
  array(1) {
    [1]=>
    int(0)
  }
}
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(0)
  }
}

Function Calls

var_dump 1

Variables

$array [{'key': 1, 'value': 0}]

Stats

MD5 5f6f204f46ac21a96be33181952e0de2
Eval Count 0
Decode Time 98 ms