3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stringxor($o1, $o2) { $res = ''; for($i=0;$i<strlen($o1);$i++) $res .= chr(ord($o1[$i]) ^ ord($o2[$i])); return $res; } $key = "c92fcd618967933ac463feb85ba00d5a7ae52842"; $member_password = "VA5QA1cCVQgPXwEAXwZVVVsHBgtfUVBaV1QEAwIFVAJWAwBRC1tRVA=="; $pass = stringxor($key, base64_decode("VA5QA1cCVQgPXwEAXwZVVVsHBgtfUVBaV1QEAwIFVAJWAwBRC1tRVA==")); print 1; print $pass;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eilJv
function name:  (null)
number of ops:  13
compiled vars:  !0 = $key, !1 = $member_password, !2 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'c92fcd618967933ac463feb85ba00d5a7ae52842'
    9     1        ASSIGN                                                   !1, 'VA5QA1cCVQgPXwEAXwZVVVsHBgtfUVBaV1QEAwIFVAJWAwBRC1tRVA%3D%3D'
   10     2        INIT_FCALL                                               'stringxor'
          3        SEND_VAR                                                 !0
          4        INIT_FCALL                                               'base64_decode'
          5        SEND_VAL                                                 'VA5QA1cCVQgPXwEAXwZVVVsHBgtfUVBaV1QEAwIFVAJWAwBRC1tRVA%3D%3D'
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !2, $6
   12    10        ECHO                                                     1
   13    11        ECHO                                                     !2
   14    12      > RETURN                                                   1

Function stringxor:
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 = 5
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
filename:       /in/eilJv
function name:  stringxor
number of ops:  24
compiled vars:  !0 = $o1, !1 = $o2, !2 = $res, !3 = $i
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
          4      > JMP                                                      ->19
    5     5    >   INIT_FCALL                                               'chr'
          6        INIT_FCALL                                               'ord'
          7        FETCH_DIM_R                                      ~6      !0, !3
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        INIT_FCALL                                               'ord'
         11        FETCH_DIM_R                                      ~8      !1, !3
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                         $9      
         14        BW_XOR                                           ~10     $7, $9
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                         $11     
         17        ASSIGN_OP                                     8          !2, $11
    4    18        PRE_INC                                                  !3
         19    >   STRLEN                                           ~14     !0
         20        IS_SMALLER                                               !3, ~14
         21      > JMPNZ                                                    ~15, ->5
    6    22    > > RETURN                                                   !2
    7    23*     > RETURN                                                   null

End of function stringxor

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.03 ms | 1394 KiB | 20 Q