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-- Test base_convert() function: converting '0' --FILE-- <?php echo 'Binary to decim..
Decoded Output download
--TEST--
Test base_convert() function: converting '0'
--FILE--
<?php
echo 'Binary to decimal:', \PHP_EOL;
var_dump(base_convert('0', 2, 10));
echo 'Octal to decimal:', \PHP_EOL;
var_dump(base_convert('0', 8, 10));
echo 'Hexadecimal to decimal:', \PHP_EOL;
var_dump(base_convert('0', 16, 10));
?>
--EXPECT--
Binary to decimal:
string(1) "0"
Octal to decimal:
string(1) "0"
Hexadecimal to decimal:
string(1) "0"
Did this file decode correctly?
Original Code
--TEST--
Test base_convert() function: converting '0'
--FILE--
<?php
echo 'Binary to decimal:', \PHP_EOL;
var_dump(base_convert('0', 2, 10));
echo 'Octal to decimal:', \PHP_EOL;
var_dump(base_convert('0', 8, 10));
echo 'Hexadecimal to decimal:', \PHP_EOL;
var_dump(base_convert('0', 16, 10));
?>
--EXPECT--
Binary to decimal:
string(1) "0"
Octal to decimal:
string(1) "0"
Hexadecimal to decimal:
string(1) "0"
Function Calls
None |
Stats
MD5 | 73fde313a140020c8a4c79b53078b034 |
Eval Count | 0 |
Decode Time | 92 ms |