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-- htmlentities() test 1 (cp1252) --INI-- output_handler= --FILE-- <?php var_dump(ht..

Decoded Output download

--TEST--
htmlentities() test 1 (cp1252)
--INI--
output_handler=
--FILE--
<?php
var_dump(htmlentities("", ENT_QUOTES, 'cp1252'));
var_dump(htmlentities("", ENT_QUOTES, 'cp1252'));
?>
--EXPECT--
string(28) "&sbquo;&dagger;&trade;&Yuml;"
string(32) "&euro;&cent;&pound;&curren;&yen;"

Did this file decode correctly?

Original Code

--TEST--
htmlentities() test 1 (cp1252)
--INI--
output_handler=
--FILE--
<?php
var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, 'cp1252'));
var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, 'cp1252'));
?>
--EXPECT--
string(28) "&sbquo;&dagger;&trade;&Yuml;"
string(32) "&euro;&cent;&pound;&curren;&yen;"

Function Calls

htmlentities 1

Variables

None

Stats

MD5 0b774ce6469fe56ea14de7656403b714
Eval Count 0
Decode Time 99 ms