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

Variables

$i 0
$values [{'key': 0, 'value': 0}, {'key': 1, 'value': 0}, {'key': 2, 'value': 0.5}, {'key': 3, 'value': 0}, {'key': 4, 'value': 1}, {'key': 5, 'value': -1}, {'key': 6, 'value': 1.5}, {'key': 7, 'value': -1}, {'key': 8, 'value': 2.6}, {'key': 9, 'value': -2}, {'key': 10, 'value': 31}, {'key': 11, 'value': 95}, {'key': 12, 'value': '10.5'}, {'key': 13, 'value': '-10.5'}, {'key': 14, 'value': '3.95E3'}, {'key': 15, 'value': '-3.95E3'}, {'key': 16, 'value': '039'}, {'key': 17, 'value': True}, {'key': 18, 'value': False}, {'key': 19, 'value': 0}]

Stats

MD5 53b155b54799e861ca6510ec634f8bfc
Eval Count 0
Decode Time 98 ms