3v4l.org

run code in 300+ PHP versions simultaneously
<?php function saveDataFormatMessage($data,$key) { $str = ""; $i = 0; while ($i < strlen($key)) { if (strpos($str, $key[$i]) === false) { $str .= $key[$i]; } $i++; } unset($key);$key = $str;unset($str);unset($i); $i = 0; $str = $data.""; $rtn = ""; while ($i < strlen($str)) { $rtn .= substr($key,$str[$i],1); $i++; } return $rtn; } function showDataValueMessage($data,$key) { $str = ""; $i = 0; while ($i < strlen($key)) { if (strpos($str, $key[$i]) === false) { $str .= $key[$i]; } $i++; } unset($key);$key = $str;unset($str);unset($i); $i = 0; $str = $data; $rtn = ""; while ($i < strlen($str)) { $rtn .= strpos($key,$str[$i]).""; $i++; } return $rtn; } echo saveDataFormatMessage(98567320,md5(""))."\n"; echo showDataValueMessage("2b9f081d",md5(""));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8GXH4
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   INIT_FCALL                                               'savedataformatmessage'
          1        SEND_VAL                                                 98567320
          2        INIT_FCALL                                               'md5'
          3        SEND_VAL                                                 ''
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_FCALL                                      0  $1      
          7        CONCAT                                           ~2      $1, '%0A'
          8        ECHO                                                     ~2
   37     9        INIT_FCALL                                               'showdatavaluemessage'
         10        SEND_VAL                                                 '2b9f081d'
         11        INIT_FCALL                                               'md5'
         12        SEND_VAL                                                 ''
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_FCALL                                      0  $4      
         16        ECHO                                                     $4
         17      > RETURN                                                   1

Function savedataformatmessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 27
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 27
Branch analysis from position: 38
Branch analysis from position: 27
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
Branch analysis from position: 14
filename:       /in/8GXH4
function name:  saveDataFormatMessage
number of ops:  40
compiled vars:  !0 = $data, !1 = $key, !2 = $str, !3 = $i, !4 = $rtn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        ASSIGN                                                   !2, ''
    4     3        ASSIGN                                                   !3, 0
    5     4      > JMP                                                      ->15
    6     5    >   INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !2
          7        FETCH_DIM_R                                      ~7      !1, !3
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        TYPE_CHECK                                    4          $8
         11      > JMPZ                                                     ~9, ->14
         12    >   FETCH_DIM_R                                      ~10     !1, !3
         13        ASSIGN_OP                                     8          !2, ~10
    7    14    >   PRE_INC                                                  !3
    5    15    >   STRLEN                                           ~13     !1
         16        IS_SMALLER                                               !3, ~13
         17      > JMPNZ                                                    ~14, ->5
    9    18    >   UNSET_CV                                                 !1
         19        ASSIGN                                                   !1, !2
         20        UNSET_CV                                                 !2
         21        UNSET_CV                                                 !3
   10    22        ASSIGN                                                   !3, 0
   11    23        CONCAT                                           ~17     !0, ''
         24        ASSIGN                                                   !2, ~17
   12    25        ASSIGN                                                   !4, ''
   13    26      > JMP                                                      ->35
   14    27    >   INIT_FCALL                                               'substr'
         28        SEND_VAR                                                 !1
         29        FETCH_DIM_R                                      ~20     !2, !3
         30        SEND_VAL                                                 ~20
         31        SEND_VAL                                                 1
         32        DO_ICALL                                         $21     
         33        ASSIGN_OP                                     8          !4, $21
   15    34        PRE_INC                                                  !3
   13    35    >   STRLEN                                           ~24     !2
         36        IS_SMALLER                                               !3, ~24
         37      > JMPNZ                                                    ~25, ->27
   17    38    > > RETURN                                                   !4
   18    39*     > RETURN                                                   null

End of function savedataformatmessage

Function showdatavaluemessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 26
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 26
Branch analysis from position: 37
Branch analysis from position: 26
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
Branch analysis from position: 14
filename:       /in/8GXH4
function name:  showDataValueMessage
number of ops:  39
compiled vars:  !0 = $data, !1 = $key, !2 = $str, !3 = $i, !4 = $rtn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   20     2        ASSIGN                                                   !2, ''
   21     3        ASSIGN                                                   !3, 0
   22     4      > JMP                                                      ->15
   23     5    >   INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !2
          7        FETCH_DIM_R                                      ~7      !1, !3
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        TYPE_CHECK                                    4          $8
         11      > JMPZ                                                     ~9, ->14
         12    >   FETCH_DIM_R                                      ~10     !1, !3
         13        ASSIGN_OP                                     8          !2, ~10
   24    14    >   PRE_INC                                                  !3
   22    15    >   STRLEN                                           ~13     !1
         16        IS_SMALLER                                               !3, ~13
         17      > JMPNZ                                                    ~14, ->5
   26    18    >   UNSET_CV                                                 !1
         19        ASSIGN                                                   !1, !2
         20        UNSET_CV                                                 !2
         21        UNSET_CV                                                 !3
   27    22        ASSIGN                                                   !3, 0
   28    23        ASSIGN                                                   !2, !0
   29    24        ASSIGN                                                   !4, ''
   30    25      > JMP                                                      ->34
   31    26    >   INIT_FCALL                                               'strpos'
         27        SEND_VAR                                                 !1
         28        FETCH_DIM_R                                      ~19     !2, !3
         29        SEND_VAL                                                 ~19
         30        DO_ICALL                                         $20     
         31        CONCAT                                           ~21     $20, ''
         32        ASSIGN_OP                                     8          !4, ~21
   32    33        PRE_INC                                                  !3
   30    34    >   STRLEN                                           ~24     !2
         35        IS_SMALLER                                               !3, ~24
         36      > JMPNZ                                                    ~25, ->26
   34    37    > > RETURN                                                   !4
   35    38*     > RETURN                                                   null

End of function showdatavaluemessage

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.89 ms | 1407 KiB | 21 Q