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-- Parse errors during token_get_all() with TOKEN_PARSE flag --EXTENSIONS-- tokenize..
Decoded Output download
--TEST--
Parse errors during token_get_all() with TOKEN_PARSE flag
--EXTENSIONS--
tokenizer
--FILE--
<?php
try {
token_get_all('<?php invalid code;', TOKEN_PARSE);
} catch (ParseError $e) {
echo $e->getMessage(), PHP_EOL;
}
echo "Done";
?>
--EXPECT--
syntax error, unexpected identifier "code"
Done
Did this file decode correctly?
Original Code
--TEST--
Parse errors during token_get_all() with TOKEN_PARSE flag
--EXTENSIONS--
tokenizer
--FILE--
<?php
try {
token_get_all('<?php invalid code;', TOKEN_PARSE);
} catch (ParseError $e) {
echo $e->getMessage(), PHP_EOL;
}
echo "Done";
?>
--EXPECT--
syntax error, unexpected identifier "code"
Done
Function Calls
None |
Stats
MD5 | 9045553e0f0ec133bc8a3c99869de539 |
Eval Count | 0 |
Decode Time | 100 ms |