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-- XHP idx Expression 04 --FILE-- <?php $string = 'foobar'; @var_dump(__xhp_idx($st..
Decoded Output download
--TEST--
XHP idx Expression 04
--FILE--
<?php
$string = 'foobar';
@var_dump(__xhp_idx($string, 0));
@var_dump(__xhp_idx($string, '0'));
@var_dump(__xhp_idx($string, null));
@var_dump(__xhp_idx($string, true));
@var_dump(__xhp_idx($string, false));
@var_dump(__xhp_idx($string, 'honk'));
--EXPECT--
string(1) "f"
string(1) "f"
string(1) "f"
string(1) "o"
string(1) "f"
string(1) "f"
?>
Did this file decode correctly?
Original Code
--TEST--
XHP idx Expression 04
--FILE--
<?php
$string = 'foobar';
@var_dump(__xhp_idx($string, 0));
@var_dump(__xhp_idx($string, '0'));
@var_dump(__xhp_idx($string, null));
@var_dump(__xhp_idx($string, true));
@var_dump(__xhp_idx($string, false));
@var_dump(__xhp_idx($string, 'honk'));
--EXPECT--
string(1) "f"
string(1) "f"
string(1) "f"
string(1) "o"
string(1) "f"
string(1) "f"
Function Calls
None |
Stats
MD5 | 7090353d995e1aae8ecece951bc70a02 |
Eval Count | 0 |
Decode Time | 99 ms |