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-- getprotobynumber function basic test --CREDITS-- edgarsandi - <edgar.r.sandi@gmai..

Decoded Output download

--TEST--
getprotobynumber function basic test
--CREDITS--
edgarsandi - <[email protected]>
--SKIPIF--
<?php
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
    if (!file_exists("/etc/protocols")) die("skip reason: missing /etc/protocols");
}
if (getenv('SKIP_MSAN')) die('skip msan missing interceptor for getprotobynumber()');
?>
--FILE--
<?php
var_dump(getprotobynumber(6));
?>
--EXPECT--
string(3) "tcp"

Did this file decode correctly?

Original Code

--TEST--
getprotobynumber function basic test
--CREDITS--
edgarsandi - <[email protected]>
--SKIPIF--
<?php
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
    if (!file_exists("/etc/protocols")) die("skip reason: missing /etc/protocols");
}
if (getenv('SKIP_MSAN')) die('skip msan missing interceptor for getprotobynumber()');
?>
--FILE--
<?php
var_dump(getprotobynumber(6));
?>
--EXPECT--
string(3) "tcp"

Function Calls

None

Variables

None

Stats

MD5 9c0716eee7af38dec7b240b85c28560c
Eval Count 0
Decode Time 104 ms