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 normal operation of random_bytes() --FILE-- <?php //-=-=-=- var_dump(strlen..

Decoded Output download

--TEST--
Test normal operation of random_bytes()
--FILE--
<?php
//-=-=-=-

var_dump(strlen(bin2hex(random_bytes(16))));

var_dump(is_string(random_bytes(10)));

var_dump(is_string(random_bytes(257)));

?>
--EXPECT--
int(32)
bool(true)
bool(true)

Did this file decode correctly?

Original Code

--TEST--
Test normal operation of random_bytes()
--FILE--
<?php
//-=-=-=-

var_dump(strlen(bin2hex(random_bytes(16))));

var_dump(is_string(random_bytes(10)));

var_dump(is_string(random_bytes(257)));

?>
--EXPECT--
int(32)
bool(true)
bool(true)

Function Calls

random_bytes 1

Variables

None

Stats

MD5 64ad0d191b27ee979ca954dafbd836cc
Eval Count 0
Decode Time 86 ms