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 ceil() - basic function test for ceil() --INI-- precision=14 --FILE-- <?php ..
Decoded Output download
*** Testing ceil() : basic functionality ***
Did this file decode correctly?
Original Code
--TEST--
Test ceil() - basic function test for ceil()
--INI--
precision=14
--FILE--
<?php
echo "*** Testing ceil() : basic functionality ***\n";
$values = array(0,
-0,
0.5,
-0.5,
1,
-1,
1.5,
-1.5,
2.6,
-2.6,
037,
0x5F,
"10.5",
"-10.5",
"3.95E3",
"-3.95E3",
"039",
true,
false,
null,
);
for ($i = 0; $i < count($values); $i++) {
$res = ceil($values[$i]);
var_dump($res);
}
?>
--EXPECTF--
*** Testing ceil() : basic functionality ***
float(0)
float(0)
float(1)
float(-0)
float(1)
float(-1)
float(2)
float(-1)
float(3)
float(-2)
float(31)
float(95)
float(11)
float(-10)
float(3950)
float(-3950)
float(39)
float(1)
float(0)
Deprecated: ceil(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d
float(0)
Function Calls
ceil | 1 |
count | 1 |
Stats
MD5 | 53b155b54799e861ca6510ec634f8bfc |
Eval Count | 0 |
Decode Time | 98 ms |