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-- basic array_flip test --FILE-- <?php $trans = array("a" => 1, "b" ..

Decoded Output download

--TEST--
basic array_flip test
--FILE--
<?php
$trans = array("a" => 1,
               "b" => 1,
               "c" => 2,
               "z" => 0,
               "d" => TRUE,
               "E" => FALSE,
               "F" => NULL,
               0 => "G",
               1 => "h",
               2 => "i");
$trans = array_flip($trans);
var_dump($trans);
?>
--EXPECTF--
Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d

Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d

Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d
array(6) {
  [1]=>
  string(1) "b"
  [2]=>
  string(1) "c"
  [0]=>
  string(1) "z"
  ["G"]=>
  int(0)
  ["h"]=>
  int(1)
  ["i"]=>
  int(2)
}

Did this file decode correctly?

Original Code

--TEST--
basic array_flip test
--FILE--
<?php
$trans = array("a" => 1,
               "b" => 1,
               "c" => 2,
               "z" => 0,
               "d" => TRUE,
               "E" => FALSE,
               "F" => NULL,
               0 => "G",
               1 => "h",
               2 => "i");
$trans = array_flip($trans);
var_dump($trans);
?>
--EXPECTF--
Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d

Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d

Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d
array(6) {
  [1]=>
  string(1) "b"
  [2]=>
  string(1) "c"
  [0]=>
  string(1) "z"
  ["G"]=>
  int(0)
  ["h"]=>
  int(1)
  ["i"]=>
  int(2)
}

Function Calls

None

Variables

None

Stats

MD5 8cf1643a447ca8341c37c6dfdc988331
Eval Count 0
Decode Time 110 ms