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 getrusage() function: basic test --SKIPIF-- <?php if (!function_exists("getr..

Decoded Output download

skipSimple testcase for getrusage() function

Did this file decode correctly?

Original Code

--TEST--
Test getrusage() function: basic test
--SKIPIF--
<?php if (!function_exists("getrusage")) print "skip"; ?>
--FILE--
<?php
echo "Simple testcase for getrusage() function\n";

$dat = getrusage();

if (!is_array($dat)) {
    echo "TEST FAILED : getrusage should return an array\n";
}

// echo the fields which are common to all platforms
echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
echo "User time used (microseconds) " . $dat["ru_utime.tv_usec"] . "\n";
?>
--EXPECTF--
Simple testcase for getrusage() function
User time used (seconds) %d
User time used (microseconds) %d

Function Calls

getrusage 1
function_exists 1

Variables

None

Stats

MD5 44cc3834fcf117547c833e3a1abec700
Eval Count 0
Decode Time 79 ms