3v4l.org

run code in 300+ PHP versions simultaneously
<?php function en2($s, $q) { $g = ""; while (strlen($g)<strlen($s)) { $q = pack("H*",md5($g.$q."q1w2e3r4")); $g.=substr($q,0,8); } return $s^$g; } echo en2("0?kgwLX371\23\5z62e2:Wn0@l.1?\4j64A403{3\5S1'\13","str_replace");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5pOQS
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'en2'
          1        SEND_VAL                                                 '0%3FkgwLX371%13%05z62e2%3AWn0%40l.1%3F%04j64A403%7B3%05S1%27%0B'
          2        SEND_VAL                                                 'str_replace'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function en2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
Branch analysis from position: 4
filename:       /in/5pOQS
function name:  en2
number of ops:  27
compiled vars:  !0 = $s, !1 = $q, !2 = $g
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ASSIGN                                                   !2, ''
    5     3      > JMP                                                      ->20
    6     4    >   INIT_FCALL                                               'pack'
          5        SEND_VAL                                                 'H%2A'
          6        INIT_FCALL                                               'md5'
          7        CONCAT                                           ~4      !2, !1
          8        CONCAT                                           ~5      ~4, 'q1w2e3r4'
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
    7    14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 8
         18        DO_ICALL                                         $9      
         19        ASSIGN_OP                                     8          !2, $9
    5    20    >   STRLEN                                           ~11     !2
         21        STRLEN                                           ~12     !0
         22        IS_SMALLER                                               ~11, ~12
         23      > JMPNZ                                                    ~13, ->4
    9    24    >   BW_XOR                                           ~14     !0, !2
         25      > RETURN                                                   ~14
   10    26*     > RETURN                                                   null

End of function en2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.89 ms | 1399 KiB | 20 Q