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; } echo saveDataFormatMessage(98567320,md5(""));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I6Fdc
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     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        ECHO                                                     $1
          8      > 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/I6Fdc
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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.41 ms | 1394 KiB | 20 Q