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 - exponential format --FILE-- <?php..

Decoded Output download

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

Did this file decode correctly?

Original Code

--TEST--
Test vprintf() function : basic functionality - exponential format
--FILE--
<?php
echo "*** Testing vprintf() : basic functionality - using exponential format ***\n";

// Initialise all required variables
$format = "format";
$format1 = "%e";
$format2 = "%e %e";
$format3 = "%e %e %e";
$arg1 = array(1000);
$arg2 = array(1000,2000);
$arg3 = array(1000,2000,3000);

$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 exponential format ***
1.000000e+3
int(11)
1.000000e+3 2.000000e+3
int(23)
1.000000e+3 2.000000e+3 3.000000e+3
int(35)

Function Calls

vprintf 1

Variables

$arg1 [{'key': 0, 'value': 1000}]
$arg2 [{'key': 0, 'value': 1000}, {'key': 1, 'value': 2000}]
$arg3 [{'key': 0, 'value': 1000}, {'key': 1, 'value': 2000}, {'key': 2, 'value': 3000}]
$format format
$format1 %e
$format2 %e %e
$format3 %e %e %e

Stats

MD5 5826dce9797a6b962f067e4d0d99e6fd
Eval Count 0
Decode Time 98 ms