3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encrypt($plain) { $plain = md5($plain); $V = md5('??????'); //var_dump($V); $rnd = md5(substr(microtime(),11));// hao miao //var_dump(substr(microtime(),11)+mt_rand(0,35)); $cipher = ''; for($i = 0; $i < strlen($plain); $i++) { //32ci $cipher .= ($plain[$i] ^ $rnd[$i]); echo $cipher; } $cipher .= $rnd; echo $cipher; $V .= strrev($V); echo $V; //var_dump($cipher); for($i = 0; $i < strlen($V); $i++) { $cipher[$i] = ($cipher[$i] ^ $V[$i]); } //var_dump($cipher); //var_dump($V); return str_replace('=', '', base64_encode($cipher)); } encrypt('sb') ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/okbro
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_FCALL                                               'encrypt'
          1        SEND_VAL                                                 'sb'
          2        DO_FCALL                                      0          
   29     3      > RETURN                                                   1

Function encrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 22
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 40
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 40
Branch analysis from position: 49
Branch analysis from position: 40
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 22
Branch analysis from position: 31
Branch analysis from position: 22
filename:       /in/okbro
function name:  encrypt
number of ops:  59
compiled vars:  !0 = $plain, !1 = $V, !2 = $rnd, !3 = $cipher, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'md5'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    5     5        INIT_FCALL                                               'md5'
          6        SEND_VAL                                                 '%3F%3F%3F%3F%3F%3F'
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    7     9        INIT_FCALL                                               'md5'
         10        INIT_FCALL                                               'substr'
         11        INIT_FCALL                                               'microtime'
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        SEND_VAL                                                 11
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !2, $11
   11    19        ASSIGN                                                   !3, ''
   12    20        ASSIGN                                                   !4, 0
         21      > JMP                                                      ->28
   13    22    >   FETCH_DIM_R                                      ~15     !0, !4
         23        FETCH_DIM_R                                      ~16     !2, !4
         24        BW_XOR                                           ~17     ~15, ~16
         25        ASSIGN_OP                                     8          !3, ~17
   14    26        ECHO                                                     !3
   12    27        PRE_INC                                                  !4
         28    >   STRLEN                                           ~20     !0
         29        IS_SMALLER                                               !4, ~20
         30      > JMPNZ                                                    ~21, ->22
   16    31    >   ASSIGN_OP                                     8          !3, !2
   17    32        ECHO                                                     !3
   18    33        INIT_FCALL                                               'strrev'
         34        SEND_VAR                                                 !1
         35        DO_ICALL                                         $23     
         36        ASSIGN_OP                                     8          !1, $23
   19    37        ECHO                                                     !1
   21    38        ASSIGN                                                   !4, 0
         39      > JMP                                                      ->46
   22    40    >   FETCH_DIM_R                                      ~27     !3, !4
         41        FETCH_DIM_R                                      ~28     !1, !4
         42        BW_XOR                                           ~29     ~27, ~28
         43        ASSIGN_DIM                                               !3, !4
         44        OP_DATA                                                  ~29
   21    45        PRE_INC                                                  !4
         46    >   STRLEN                                           ~31     !1
         47        IS_SMALLER                                               !4, ~31
         48      > JMPNZ                                                    ~32, ->40
   26    49    >   INIT_FCALL                                               'str_replace'
         50        SEND_VAL                                                 '%3D'
         51        SEND_VAL                                                 ''
         52        INIT_FCALL                                               'base64_encode'
         53        SEND_VAR                                                 !3
         54        DO_ICALL                                         $33     
         55        SEND_VAR                                                 $33
         56        DO_ICALL                                         $34     
         57      > RETURN                                                   $34
   27    58*     > RETURN                                                   null

End of function encrypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.46 ms | 1403 KiB | 26 Q