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_int() --FILE-- <?php var_dump(is_int(random_int(..

Decoded Output download

--TEST--
Test normal operation of random_int()
--FILE--
<?php

var_dump(is_int(random_int(10, 100)));

$x = random_int(10, 100);
var_dump($x >= 10 && $x <= 100);

var_dump(random_int(-1000, -1) < 0);
var_dump(random_int(-1, PHP_INT_MAX) >= -1);
var_dump(is_int(random_int(PHP_INT_MIN, PHP_INT_MAX)));

var_dump(random_int(42,42));

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

Did this file decode correctly?

Original Code

--TEST--
Test normal operation of random_int()
--FILE--
<?php

var_dump(is_int(random_int(10, 100)));

$x = random_int(10, 100);
var_dump($x >= 10 && $x <= 100);

var_dump(random_int(-1000, -1) < 0);
var_dump(random_int(-1, PHP_INT_MAX) >= -1);
var_dump(is_int(random_int(PHP_INT_MIN, PHP_INT_MAX)));

var_dump(random_int(42,42));

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

Function Calls

random_int 1

Variables

None

Stats

MD5 7c0fd3a111602610bf188a1b844effc8
Eval Count 0
Decode Time 92 ms