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 27 --FILE-- <?php $array = array (1); var_dump ($array)..

Decoded Output download

--TEST--
array_chunk() - variation 27
--FILE--
<?php
$array = array (1);
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) {
  [0]=>
  int(1)
}
[1]
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(1)
  }
}
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(1)
  }
}
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(1)
  }
}

Did this file decode correctly?

Original Code

--TEST--
array_chunk() - variation 27
--FILE--
<?php
$array = array (1);
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) {
  [0]=>
  int(1)
}
[1]
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(1)
  }
}
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(1)
  }
}
array(1) {
  [0]=>
  array(1) {
    [0]=>
    int(1)
  }
}

Function Calls

var_dump 1

Variables

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

Stats

MD5 0c9c4c25976eadc8877d13f1220d21ef
Eval Count 0
Decode Time 92 ms