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 vprintf() function : basic functionality - integer format --FILE-- <?php /* ..

Decoded Output download

*** Testing vprintf() : basic functionality - using integer format ***

Did this file decode correctly?

Original Code

--TEST--
Test vprintf() function : basic functionality - integer format
--FILE--
<?php
/*
 *  Testing vprintf() : basic functionality - using integer format
*/

echo "*** Testing vprintf() : basic functionality - using integer format ***\n";

// Initialise all required variables
$format = "format";
$format1 = "%d";
$format2 = "%d %d";
$format3 = "%d %d %d";
$arg1 = array(111);
$arg2 = array(111,222);
$arg3 = array(111,222,333);

$result = vprintf($format1,$arg1);
echo "\n";
var_dump($result);

$result = vprintf($format2,$arg2);
echo "\n";
var_dump($result);

$result = vprintf($format3,$arg3);
echo "\n";
var_dump($result);

?>
--EXPECT--
*** Testing vprintf() : basic functionality - using integer format ***
111
int(3)
111 222
int(7)
111 222 333
int(11)

Function Calls

vprintf 1

Variables

$arg1 [{'key': 0, 'value': 111}]
$arg2 [{'key': 0, 'value': 111}, {'key': 1, 'value': 222}]
$arg3 [{'key': 0, 'value': 111}, {'key': 1, 'value': 222}, {'key': 2, 'value': 333}]
$format format
$format1 %d
$format2 %d %d
$format3 %d %d %d

Stats

MD5 283f8baca9fb13b150b06a1bd3260b7f
Eval Count 0
Decode Time 108 ms