3v4l.org

run code in 300+ PHP versions simultaneously
<?php function removeExtraCharacters($key) { $str = ""; $i = 0; while ($i < strlen($key)) { if (strpos($str, $key[$i]) === false) { $str .= $key[$i]; } $i++; } return $str; } function saveDataFormatMessage($data,$key) { $j = 0; $key = removeExtraCharacters($key); $str = $data.""; $rtn = ""; while ($j < strlen($str)) { $rtn .= substr($key,$str[$j],1); $j++; } return $rtn; } function showDataValueMessage($data,$key) { $j = 0; $key = removeExtraCharacters($key); $rtn = ""; while ($j < strlen($data)) { $rtn .= strpos($key,$data[$j]).""; $j++; } 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/d1PnB
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     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
   33     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 removeextracharacters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
Branch analysis from position: 4
Branch analysis from position: 13
filename:       /in/d1PnB
function name:  removeExtraCharacters
number of ops:  19
compiled vars:  !0 = $key, !1 = $str, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, 0
    5     3      > JMP                                                      ->14
    6     4    >   INIT_FCALL                                               'strpos'
          5        SEND_VAR                                                 !1
          6        FETCH_DIM_R                                      ~5      !0, !2
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        TYPE_CHECK                                    4          $6
         10      > JMPZ                                                     ~7, ->13
         11    >   FETCH_DIM_R                                      ~8      !0, !2
         12        ASSIGN_OP                                     8          !1, ~8
    7    13    >   PRE_INC                                                  !2
    5    14    >   STRLEN                                           ~11     !0
         15        IS_SMALLER                                               !2, ~11
         16      > JMPNZ                                                    ~12, ->4
    9    17    > > RETURN                                                   !1
   10    18*     > RETURN                                                   null

End of function removeextracharacters

Function savedataformatmessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 11
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 11
Branch analysis from position: 22
Branch analysis from position: 11
filename:       /in/d1PnB
function name:  saveDataFormatMessage
number of ops:  24
compiled vars:  !0 = $data, !1 = $key, !2 = $j, !3 = $str, !4 = $rtn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        ASSIGN                                                   !2, 0
   13     3        INIT_FCALL                                               'removeextracharacters'
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !1, $6
   14     7        CONCAT                                           ~8      !0, ''
          8        ASSIGN                                                   !3, ~8
   15     9        ASSIGN                                                   !4, ''
   16    10      > JMP                                                      ->19
   17    11    >   INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !1
         13        FETCH_DIM_R                                      ~11     !3, !2
         14        SEND_VAL                                                 ~11
         15        SEND_VAL                                                 1
         16        DO_ICALL                                         $12     
         17        ASSIGN_OP                                     8          !4, $12
   18    18        PRE_INC                                                  !2
   16    19    >   STRLEN                                           ~15     !3
         20        IS_SMALLER                                               !2, ~15
         21      > JMPNZ                                                    ~16, ->11
   20    22    > > RETURN                                                   !4
   21    23*     > RETURN                                                   null

End of function savedataformatmessage

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

End of function showdatavaluemessage

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.99 ms | 1398 KiB | 23 Q