Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * UDP */ namespace flame\udp; /** * , socket * @param string $address ,..

Decoded Output download

<?php
/**
 *  UDP 
 */
namespace flame\udp;

/**
 * ,  socket 
 * @param string $address , : "127.0.0.1:8687"
 * : UDP "" ;
 * 
 */
function connect(string $address):socket {
    return new socket();
}

/**
 *  socket 
 * @example
 *    $socket = new flame\udp\socket();
 */
class socket {
    /**
     *  socket 
     * :
     *  __construct(string $address, array $option = [])
     * 
     *  __construct(array $option = [])
     * ;
     * @param array $option :
     * * `max` integer - ( 64k )
     */
    function __construct($opt_or_address = null, array $option = []) {}
    /**
     * @var string 
     */
    public $local_address;
    /**
     * @var string 
     */
    public $remote_address;
    /**
     *  UDP 
     * : ""
     * @see flame\udp\connect()
     */
    function send(string $data) {}
    /**
     *  $to  UDP 
     * @param string $to , ;
     */
    function send_to(string $data, string $to) {}
    /**
     *  UDP 
     * @return mixed ( string);  socket  null;
     */
    function recv():string {
        return "payload from udp packet";
    }
    /**
     * 
     * :  send(_to)  recv(_from) ;
     */
    function close() {}
}
/**
 * ,  socket 
 */
class server {
    /**
     * , , 
     * @param string $address , : "0.0.0.0:8888"  ":::8888"
     */
    function __construct(string $address, array $options = []) {}
    /**
     * , , ;
     * @param callable $cb , :
     *  function(string $data, string $from) {}
     *  $data - 
     *  $from - 
     */
    function run(callable $cb) {}
    /**
     *  UDP , 
     * @see flame::socket::send_to()
     */
    function send_to(string $data, string $address) {}
    /**
     *  ( run() , "")
     */
    function close() {}
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 *  UDP 
 */
namespace flame\udp;

/**
 * ,  socket 
 * @param string $address , : "127.0.0.1:8687"
 * : UDP "" ;
 * 
 */
function connect(string $address):socket {
    return new socket();
}

/**
 *  socket 
 * @example
 *    $socket = new flame\udp\socket();
 */
class socket {
    /**
     *  socket 
     * :
     *  __construct(string $address, array $option = [])
     * 
     *  __construct(array $option = [])
     * ;
     * @param array $option :
     * * `max` integer - ( 64k )
     */
    function __construct($opt_or_address = null, array $option = []) {}
    /**
     * @var string 
     */
    public $local_address;
    /**
     * @var string 
     */
    public $remote_address;
    /**
     *  UDP 
     * : ""
     * @see flame\udp\connect()
     */
    function send(string $data) {}
    /**
     *  $to  UDP 
     * @param string $to , ;
     */
    function send_to(string $data, string $to) {}
    /**
     *  UDP 
     * @return mixed ( string);  socket  null;
     */
    function recv():string {
        return "payload from udp packet";
    }
    /**
     * 
     * :  send(_to)  recv(_from) ;
     */
    function close() {}
}
/**
 * ,  socket 
 */
class server {
    /**
     * , , 
     * @param string $address , : "0.0.0.0:8888"  ":::8888"
     */
    function __construct(string $address, array $options = []) {}
    /**
     * , , ;
     * @param callable $cb , :
     *  function(string $data, string $from) {}
     *  $data - 
     *  $from - 
     */
    function run(callable $cb) {}
    /**
     *  UDP , 
     * @see flame::socket::send_to()
     */
    function send_to(string $data, string $address) {}
    /**
     *  ( run() , "")
     */
    function close() {}
}

Function Calls

None

Variables

None

Stats

MD5 abc2e3e6d9284fc9f2aa1b669a276fb2
Eval Count 0
Decode Time 83 ms