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 1 with float values. --FIL..

Decoded Output download

*** Test substituting argument 1 with float values ***

Did this file decode correctly?

Original Code

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


echo "*** Test substituting argument 1 with float values ***\n";

$protocol = "tcp";


$variation_array = array(
  'float 10.5' => 10.5,
  'float -10.5' => -10.5,
  'float 12.3456789000e10' => 12.3456789000e10,
  'float -12.3456789000e10' => -12.3456789000e10,
  'float .5' => .5,
  );


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

Function Calls

getservbyname 1

Variables

$var 10.5
$protocol tcp
$variation_array [{'key': 'float 10.5', 'value': 10.5}, {'key': 'float -10.5', 'value': -10}, {'key': 'float 12.3456789000e10', 'value': 123456789000.0}, {'key': 'float -12.3456789000e10', 'value': -123456789000}, {'key': 'float .5', 'value': 0.5}]

Stats

MD5 5f2d072777202373c4d0a5c16170648a
Eval Count 0
Decode Time 86 ms