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 function getservbyname() by substituting argument 2 with int values. --FILE-..

Decoded Output download

*** Test substituting argument 2 with int values ***

Did this file decode correctly?

Original Code

--TEST--
Test function getservbyname() by substituting argument 2 with int values.
--FILE--
<?php


echo "*** Test substituting argument 2 with int values ***\n";

$service = "www";


$variation_array = array (
    'int 0' => 0,
    'int 1' => 1,
    'int 12345' => 12345,
    'int -12345' => -2345,
    );


foreach ( $variation_array as $var ) {
  var_dump(getservbyname( $service, $var  ) );
}
?>
--EXPECT--
*** Test substituting argument 2 with int values ***
bool(false)
bool(false)
bool(false)
bool(false)

Function Calls

getservbyname 1

Variables

$var 0
$service www
$variation_array [{'key': 'int 0', 'value': 0}, {'key': 'int 1', 'value': 1}, {'key': 'int 12345', 'value': 12345}, {'key': 'int -12345', 'value': -2345}]

Stats

MD5 fa762c9315210a12398bf8e278dfef08
Eval Count 0
Decode Time 72 ms