3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_start = explode(" ", microtime()); $_sys['load'][] = ($_start[1] + $_start[0]) - $_sys['load'][0]; unset($_start); function format_string($value) { $value = trim( preg_replace("/[^\p{L}\p{N}!?@#$%_^{}.,|&*+\-():\[\]\/\\\]/u", " ", html_entity_decode($value, ENT_QUOTES, "UTF-8"))); if (!empty($value)) { return $value; } else { return false; } } function format_string_import($value) { $value = str_replace("-_", "-", str_replace("_-", "-", str_replace("_-_", "-", preg_replace('/_+/', '_', preg_replace('/-+/', '-', strtolower( trim( preg_replace("/[^\p{L}\p{N}-\'\"_]/u", "_", html_entity_decode($value, ENT_QUOTES, "UTF-8") ) ) ) ) ) ) )); while (isset($value[0]) && $value[0] == "_") { $value = substr($value, 1); } while (isset($value[0]) && $value[0] == "-") { $value = substr($value, 0, -1); } while (isset($value[0]) && substr($value, -1) == "-") { $value = substr($value, 0, -1); } while (isset($value[0]) && substr($value, -1) == "_") { $value = substr($value, 0, -1); } if (isset($value[0])) { return $value; } else { return false; } } function format_num($value) { $value = (int)preg_replace("/[^0-9]/", null, $value); if (isset($value[0])) { return $value; } else { return false; } } function mmc_query($q, $server = 0) { if (!empty($q)) { if ($GLOBALS['_config']['sql_cache'] == 1) { if ($d = mmc_read($q, $server)) { return unserialize(base64_decode($d)); } else { if ($d = read_mysql($q, $server)) { mmc_send($q, base64_encode(serialize($d)), $server); return $d; } else { return false; } } } else { return read_mysql($q, $server); } } else { return false; } } function mmc_read($o, $server = 0) { if (!empty($o)) { if (!isset($GLOBALS['MEMCACHE'][$server])) { $GLOBALS['MEMCACHE'][$server] = memcache_connect($GLOBALS['_config']['memcached_host'][$server], 0); } if ($r = memcache_get($GLOBALS['MEMCACHE'][$server], md5($o . $_SERVER['SERVER_NAME']))) { return unserialize($r); } else { return false; } } else { return false; } } function mmc_send($o, $data, $server = 0) { if (!empty($o)) { if (!isset($GLOBALS['MEMCACHE'][$server])) { $GLOBALS['MEMCACHE'][$server] = memcache_connect($GLOBALS['_config']['memcached_host'][$server], 0); } memcache_set( $GLOBALS['MEMCACHE'][$server], md5($o . $_SERVER['SERVER_NAME']), serialize($data), $GLOBALS['_config']['memcached_compress'], $GLOBALS['_config']['memcached_time'] ); } } function mmc_replace($o, $data, $server = 0) { if (!empty($o)) { if (!isset($GLOBALS['MEMCACHE'][$server])) { $GLOBALS['MEMCACHE'][$server] = memcache_connect($GLOBALS['_config']['memcached_host'][$server], 0); } memcache_replace( $GLOBALS['MEMCACHE'][$server], md5($o . $_SERVER['SERVER_NAME']), serialize($data), $GLOBALS['_config']['memcached_compress'], $GLOBALS['_config']['memcached_time'] ); } } function read_mysql($q, $server = 0) { if (!empty($q)) { if (!isset($GLOBALS['MYSQL'][$server])) { $GLOBALS['MYSQL'][$server] = mysqli_connect($GLOBALS['_config']['mysql_host'][$server], $GLOBALS['_config']['mysql_user'][$server], $GLOBALS['_config']['mysql_pass'][$server], $GLOBALS['_config']['mysql_database'][$server]); } if ($r = mysqli_query($GLOBALS['MYSQL'][$server], $q)) { if ($r->num_rows > 0) { $d = array(); while ($row = mysqli_fetch_assoc($r)) { $d[] = $row; } return $d; } else { return false; } } else { return false; } } else { return false; } } function last_mysql_id($server = 0) { if (isset($GLOBALS['MYSQL'][$server])) { if (!empty($GLOBALS['MYSQL'][$server]->insert_id)) { return $GLOBALS['MYSQL'][$server]->insert_id; } else { return false; } } else { return false; } } function send_mysql($q, $server = 0) { if (!empty($q)) { if (!isset($GLOBALS['MYSQL'][$server])) { $GLOBALS['MYSQL'][$server] = mysqli_connect($GLOBALS['_config']['mysql_host'][$server], $GLOBALS['_config']['mysql_user'][$server], $GLOBALS['_config']['mysql_pass'][$server], $GLOBALS['_config']['mysql_database'][$server]); } mysqli_query($GLOBALS['MYSQL'][$server], $q); } } function encrypt($key, $value) { return base64_encode(openssl_encrypt($value, "AES-128-CBC", $key, 0, substr(md5($key), 0, 16))); } function decrypt($key, $value) { return openssl_decrypt(base64_decode($value), "AES-128-CBC", $key, 0, substr(md5($key), 0, 16)); } function send_mail($to, $to_name, $subject, $body) { require_once("Mail.php"); $to = $to_name . " <" . $to . ">"; $headers = array( 'From' => $GLOBALS['_config']['email_name'] . " <" . $GLOBALS['_config']['email'] . ">", 'To' => $to, 'Subject' => $subject, ); $smtp = Mail::factory( 'smtp', array( 'host' => $GLOBALS['_config']['email_host'], 'auth' => true, 'username' => $GLOBALS['_config']['email_login'], 'password' => $GLOBALS['_config']['email_pass'], ) ); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { //return($mail->getMessage()); return false; } else { return true; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2pfMl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $_start, !1 = $_sys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '+'
          2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    3     7        FETCH_DIM_R                                      ~7      !0, 1
          8        FETCH_DIM_R                                      ~8      !0, 0
          9        ADD                                              ~9      ~7, ~8
         10        FETCH_DIM_R                                      ~10     !1, 'load'
         11        FETCH_DIM_R                                      ~11     ~10, 0
         12        SUB                                              ~12     ~9, ~11
         13        FETCH_DIM_W                                      $5      !1, 'load'
         14        ASSIGN_DIM                                               $5
         15        OP_DATA                                                  ~12
    4    16        UNSET_CV                                                 !0
  222    17      > RETURN                                                   1

Function format_string:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2pfMl
function name:  format_string
number of ops:  22
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'trim'
    8     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5B%5E%5Cp%7BL%7D%5Cp%7BN%7D%21%3F%40%23%24%25_%5E%7B%7D.%2C%7C%26%2A%2B%5C-%28%29%3A%5C%5B%5C%5D%5C%2F%5C%5C%5D%2Fu'
          4        SEND_VAL                                                 '+'
    9     5        INIT_FCALL                                               'html_entity_decode'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 3
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                         $3      
    7    14        ASSIGN                                                   !0, $3
   10    15        ISSET_ISEMPTY_CV                                 ~5      !0
         16        BOOL_NOT                                         ~6      ~5
         17      > JMPZ                                                     ~6, ->20
   11    18    > > RETURN                                                   !0
         19*       JMP                                                      ->21
   13    20    > > RETURN                                                   <false>
   15    21*     > RETURN                                                   null

End of function format_string

Function format_string_import:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
2 jumps found. (Code = 46) Position 1 = 51, Position 2 = 54
Branch analysis from position: 51
2 jumps found. (Code = 44) Position 1 = 55, Position 2 = 44
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 62
Branch analysis from position: 62
2 jumps found. (Code = 46) Position 1 = 64, Position 2 = 67
Branch analysis from position: 64
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 56
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
2 jumps found. (Code = 46) Position 1 = 77, Position 2 = 83
Branch analysis from position: 77
2 jumps found. (Code = 44) Position 1 = 84, Position 2 = 69
Branch analysis from position: 84
1 jumps found. (Code = 42) Position 1 = 91
Branch analysis from position: 91
2 jumps found. (Code = 46) Position 1 = 93, Position 2 = 99
Branch analysis from position: 93
2 jumps found. (Code = 44) Position 1 = 100, Position 2 = 85
Branch analysis from position: 100
2 jumps found. (Code = 43) Position 1 = 102, Position 2 = 104
Branch analysis from position: 102
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 104
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 85
2 jumps found. (Code = 46) Position 1 = 93, Position 2 = 99
Branch analysis from position: 93
Branch analysis from position: 99
Branch analysis from position: 99
Branch analysis from position: 69
2 jumps found. (Code = 46) Position 1 = 77, Position 2 = 83
Branch analysis from position: 77
Branch analysis from position: 83
Branch analysis from position: 83
Branch analysis from position: 56
2 jumps found. (Code = 46) Position 1 = 64, Position 2 = 67
Branch analysis from position: 64
Branch analysis from position: 67
Branch analysis from position: 67
Branch analysis from position: 44
2 jumps found. (Code = 46) Position 1 = 51, Position 2 = 54
Branch analysis from position: 51
Branch analysis from position: 54
Branch analysis from position: 54
filename:       /in/2pfMl
function name:  format_string_import
number of ops:  106
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   19     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '-_'
          3        SEND_VAL                                                 '-'
   20     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '_-'
          6        SEND_VAL                                                 '-'
   21     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '_-_'
          9        SEND_VAL                                                 '-'
   22    10        INIT_FCALL                                               'preg_replace'
         11        SEND_VAL                                                 '%2F_%2B%2F'
         12        SEND_VAL                                                 '_'
   23    13        INIT_FCALL                                               'preg_replace'
         14        SEND_VAL                                                 '%2F-%2B%2F'
         15        SEND_VAL                                                 '-'
   24    16        INIT_FCALL                                               'strtolower'
   25    17        INIT_FCALL                                               'trim'
   26    18        INIT_FCALL                                               'preg_replace'
         19        SEND_VAL                                                 '%2F%5B%5E%5Cp%7BL%7D%5Cp%7BN%7D-%5C%27%22_%5D%2Fu'
         20        SEND_VAL                                                 '_'
   27    21        INIT_FCALL                                               'html_entity_decode'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 3
         24        SEND_VAL                                                 'UTF-8'
         25        DO_ICALL                                         $1      
         26        SEND_VAR                                                 $1
         27        DO_ICALL                                         $2      
         28        SEND_VAR                                                 $2
         29        DO_ICALL                                         $3      
         30        SEND_VAR                                                 $3
         31        DO_ICALL                                         $4      
         32        SEND_VAR                                                 $4
         33        DO_ICALL                                         $5      
         34        SEND_VAR                                                 $5
         35        DO_ICALL                                         $6      
         36        SEND_VAR                                                 $6
         37        DO_ICALL                                         $7      
         38        SEND_VAR                                                 $7
         39        DO_ICALL                                         $8      
         40        SEND_VAR                                                 $8
         41        DO_ICALL                                         $9      
   19    42        ASSIGN                                                   !0, $9
   35    43      > JMP                                                      ->49
   36    44    >   INIT_FCALL                                               'substr'
         45        SEND_VAR                                                 !0
         46        SEND_VAL                                                 1
         47        DO_ICALL                                         $11     
         48        ASSIGN                                                   !0, $11
   35    49    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~13     !0, 0
         50      > JMPZ_EX                                          ~13     ~13, ->54
         51    >   FETCH_DIM_R                                      ~14     !0, 0
         52        IS_EQUAL                                         ~15     ~14, '_'
         53        BOOL                                             ~13     ~15
         54    > > JMPNZ                                                    ~13, ->44
   38    55    > > JMP                                                      ->62
   39    56    >   INIT_FCALL                                               'substr'
         57        SEND_VAR                                                 !0
         58        SEND_VAL                                                 0
         59        SEND_VAL                                                 -1
         60        DO_ICALL                                         $16     
         61        ASSIGN                                                   !0, $16
   38    62    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~18     !0, 0
         63      > JMPZ_EX                                          ~18     ~18, ->67
         64    >   FETCH_DIM_R                                      ~19     !0, 0
         65        IS_EQUAL                                         ~20     ~19, '-'
         66        BOOL                                             ~18     ~20
         67    > > JMPNZ                                                    ~18, ->56
   41    68    > > JMP                                                      ->75
   42    69    >   INIT_FCALL                                               'substr'
         70        SEND_VAR                                                 !0
         71        SEND_VAL                                                 0
         72        SEND_VAL                                                 -1
         73        DO_ICALL                                         $21     
         74        ASSIGN                                                   !0, $21
   41    75    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~23     !0, 0
         76      > JMPZ_EX                                          ~23     ~23, ->83
         77    >   INIT_FCALL                                               'substr'
         78        SEND_VAR                                                 !0
         79        SEND_VAL                                                 -1
         80        DO_ICALL                                         $24     
         81        IS_EQUAL                                         ~25     $24, '-'
         82        BOOL                                             ~23     ~25
         83    > > JMPNZ                                                    ~23, ->69
   44    84    > > JMP                                                      ->91
   45    85    >   INIT_FCALL                                               'substr'
         86        SEND_VAR                                                 !0
         87        SEND_VAL                                                 0
         88        SEND_VAL                                                 -1
         89        DO_ICALL                                         $26     
         90        ASSIGN                                                   !0, $26
   44    91    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~28     !0, 0
         92      > JMPZ_EX                                          ~28     ~28, ->99
         93    >   INIT_FCALL                                               'substr'
         94        SEND_VAR                                                 !0
         95        SEND_VAL                                                 -1
         96        DO_ICALL                                         $29     
         97        IS_EQUAL                                         ~30     $29, '_'
         98        BOOL                                             ~28     ~30
         99    > > JMPNZ                                                    ~28, ->85
   47   100    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, 0
        101      > JMPZ                                                     ~31, ->104
   48   102    > > RETURN                                                   !0
        103*       JMP                                                      ->105
   50   104    > > RETURN                                                   <false>
   52   105*     > RETURN                                                   null

End of function format_string_import

Function format_num:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2pfMl
function name:  format_num
number of ops:  14
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   55     0  E >   RECV                                             !0      
   57     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
          3        SEND_VAL                                                 null
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        CAST                                          4  ~2      $1
          7        ASSIGN                                                   !0, ~2
   58     8        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 0
          9      > JMPZ                                                     ~4, ->12
   59    10    > > RETURN                                                   !0
         11*       JMP                                                      ->13
   61    12    > > RETURN                                                   <false>
   63    13*     > RETURN                                                   null

End of function format_num

Function mmc_query:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 51
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 45
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 43
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2pfMl
function name:  mmc_query
number of ops:  53
compiled vars:  !0 = $q, !1 = $server, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   65     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
   67     2        ISSET_ISEMPTY_CV                                 ~3      !0
          3        BOOL_NOT                                         ~4      ~3
          4      > JMPZ                                                     ~4, ->51
   68     5    >   FETCH_R                      global              ~5      'GLOBALS'
          6        FETCH_DIM_R                                      ~6      ~5, '_config'
          7        FETCH_DIM_R                                      ~7      ~6, 'sql_cache'
          8        IS_EQUAL                                                 ~7, 1
          9      > JMPZ                                                     ~8, ->45
   69    10    >   INIT_FCALL_BY_NAME                                       'mmc_read'
         11        SEND_VAR_EX                                              !0
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $9      
         14        ASSIGN                                           ~10     !2, $9
         15      > JMPZ                                                     ~10, ->24
   70    16    >   INIT_FCALL                                               'unserialize'
         17        INIT_FCALL                                               'base64_decode'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $11     
         20        SEND_VAR                                                 $11
         21        DO_ICALL                                         $12     
         22      > RETURN                                                   $12
         23*       JMP                                                      ->44
   72    24    >   INIT_FCALL_BY_NAME                                       'read_mysql'
         25        SEND_VAR_EX                                              !0
         26        SEND_VAR_EX                                              !1
         27        DO_FCALL                                      0  $13     
         28        ASSIGN                                           ~14     !2, $13
         29      > JMPZ                                                     ~14, ->43
   73    30    >   INIT_FCALL_BY_NAME                                       'mmc_send'
         31        SEND_VAR_EX                                              !0
         32        INIT_FCALL                                               'base64_encode'
         33        INIT_FCALL                                               'serialize'
         34        SEND_VAR                                                 !2
         35        DO_ICALL                                         $15     
         36        SEND_VAR                                                 $15
         37        DO_ICALL                                         $16     
         38        SEND_VAR_NO_REF_EX                                       $16
         39        SEND_VAR_EX                                              !1
         40        DO_FCALL                                      0          
   74    41      > RETURN                                                   !2
         42*       JMP                                                      ->44
   76    43    > > RETURN                                                   <false>
         44*       JMP                                                      ->50
   80    45    >   INIT_FCALL_BY_NAME                                       'read_mysql'
         46        SEND_VAR_EX                                              !0
         47        SEND_VAR_EX                                              !1
         48        DO_FCALL                                      0  $18     
         49      > RETURN                                                   $18
         50*       JMP                                                      ->52
   83    51    > > RETURN                                                   <false>
   85    52*     > RETURN                                                   null

End of function mmc_query

Function mmc_read:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 46
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 23
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 44
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2pfMl
function name:  mmc_read
number of ops:  48
compiled vars:  !0 = $o, !1 = $server, !2 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   87     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
   89     2        ISSET_ISEMPTY_CV                                 ~3      !0
          3        BOOL_NOT                                         ~4      ~3
          4      > JMPZ                                                     ~4, ->46
   90     5    >   FETCH_IS                                         ~5      'GLOBALS'
          6        FETCH_DIM_IS                                     ~6      ~5, 'MEMCACHE'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      ~6, !1
          8        BOOL_NOT                                         ~8      ~7
          9      > JMPZ                                                     ~8, ->23
   91    10    >   INIT_FCALL_BY_NAME                                       'memcache_connect'
         11        CHECK_FUNC_ARG                                           
         12        FETCH_FUNC_ARG               global              $12     'GLOBALS'
         13        FETCH_DIM_FUNC_ARG                               $13     $12, '_config'
         14        FETCH_DIM_FUNC_ARG                               $14     $13, 'memcached_host'
         15        FETCH_DIM_FUNC_ARG                               $15     $14, !1
         16        SEND_FUNC_ARG                                            $15
         17        SEND_VAL_EX                                              0
         18        DO_FCALL                                      0  $16     
         19        FETCH_W                      global              $9      'GLOBALS'
         20        FETCH_DIM_W                                      $10     $9, 'MEMCACHE'
         21        ASSIGN_DIM                                               $10, !1
         22        OP_DATA                                                  $16
   93    23    >   INIT_FCALL_BY_NAME                                       'memcache_get'
         24        CHECK_FUNC_ARG                                           
         25        FETCH_FUNC_ARG               global              $17     'GLOBALS'
         26        FETCH_DIM_FUNC_ARG                               $18     $17, 'MEMCACHE'
         27        FETCH_DIM_FUNC_ARG                               $19     $18, !1
         28        SEND_FUNC_ARG                                            $19
         29        INIT_FCALL                                               'md5'
         30        FETCH_R                      global              ~20     '_SERVER'
         31        FETCH_DIM_R                                      ~21     ~20, 'SERVER_NAME'
         32        CONCAT                                           ~22     !0, ~21
         33        SEND_VAL                                                 ~22
         34        DO_ICALL                                         $23     
         35        SEND_VAR_NO_REF_EX                                       $23
         36        DO_FCALL                                      0  $24     
         37        ASSIGN                                           ~25     !2, $24
         38      > JMPZ                                                     ~25, ->44
   94    39    >   INIT_FCALL                                               'unserialize'
         40        SEND_VAR                                                 !2
         41        DO_ICALL                                         $26     
         42      > RETURN                                                   $26
         43*       JMP                                                      ->45
   96    44    > > RETURN                                                   <false>
         45*       JMP                                                      ->47
   99    46    > > RETURN                                                   <false>
  101    47*     > RETURN                                                   null

End of function mmc_read

Function mmc_send:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 52
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 24
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 52
filename:       /in/2pfMl
function name:  mmc_send
number of ops:  53
compiled vars:  !0 = $o, !1 = $data, !2 = $server
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  103     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      0
  105     3        ISSET_ISEMPTY_CV                                 ~3      !0
          4        BOOL_NOT                                         ~4      ~3
          5      > JMPZ                                                     ~4, ->52
  106     6    >   FETCH_IS                                         ~5      'GLOBALS'
          7        FETCH_DIM_IS                                     ~6      ~5, 'MEMCACHE'
          8        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      ~6, !2
          9        BOOL_NOT                                         ~8      ~7
         10      > JMPZ                                                     ~8, ->24
  107    11    >   INIT_FCALL_BY_NAME                                       'memcache_connect'
         12        CHECK_FUNC_ARG                                           
         13        FETCH_FUNC_ARG               global              $12     'GLOBALS'
         14        FETCH_DIM_FUNC_ARG                               $13     $12, '_config'
         15        FETCH_DIM_FUNC_ARG                               $14     $13, 'memcached_host'
         16        FETCH_DIM_FUNC_ARG                               $15     $14, !2
         17        SEND_FUNC_ARG                                            $15
         18        SEND_VAL_EX                                              0
         19        DO_FCALL                                      0  $16     
         20        FETCH_W                      global              $9      'GLOBALS'
         21        FETCH_DIM_W                                      $10     $9, 'MEMCACHE'
         22        ASSIGN_DIM                                               $10, !2
         23        OP_DATA                                                  $16
  109    24    >   INIT_FCALL_BY_NAME                                       'memcache_set'
         25        CHECK_FUNC_ARG                                           
  110    26        FETCH_FUNC_ARG               global              $17     'GLOBALS'
         27        FETCH_DIM_FUNC_ARG                               $18     $17, 'MEMCACHE'
         28        FETCH_DIM_FUNC_ARG                               $19     $18, !2
         29        SEND_FUNC_ARG                                            $19
  111    30        INIT_FCALL                                               'md5'
         31        FETCH_R                      global              ~20     '_SERVER'
         32        FETCH_DIM_R                                      ~21     ~20, 'SERVER_NAME'
         33        CONCAT                                           ~22     !0, ~21
         34        SEND_VAL                                                 ~22
         35        DO_ICALL                                         $23     
         36        SEND_VAR_NO_REF_EX                                       $23
  112    37        INIT_FCALL                                               'serialize'
         38        SEND_VAR                                                 !1
         39        DO_ICALL                                         $24     
         40        SEND_VAR_NO_REF_EX                                       $24
         41        CHECK_FUNC_ARG                                           
  113    42        FETCH_FUNC_ARG               global              $25     'GLOBALS'
         43        FETCH_DIM_FUNC_ARG                               $26     $25, '_config'
         44        FETCH_DIM_FUNC_ARG                               $27     $26, 'memcached_compress'
         45        SEND_FUNC_ARG                                            $27
         46        CHECK_FUNC_ARG                                           
  114    47        FETCH_FUNC_ARG               global              $28     'GLOBALS'
         48        FETCH_DIM_FUNC_ARG                               $29     $28, '_config'
         49        FETCH_DIM_FUNC_ARG                               $30     $29, 'memcached_time'
         50        SEND_FUNC_ARG                                            $30
         51        DO_FCALL                                      0          
  117    52    > > RETURN                                                   null

End of function mmc_send

Func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.11 ms | 1428 KiB | 39 Q