3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '4556494730120644'; $sKey = '8519293193919192153'; $s = ''; $j = 0; for($i=0;$i < strlen($str);$i++) { $s .= chr( ord(substr($str,$i,1)) + ord(substr($sKey,$j++,1))); if($j==strlen($sKey)) $j=0; } ; echo $s; echo "\n"; echo utf8_encode($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 6
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 32
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 6
Branch analysis from position: 36
Branch analysis from position: 6
Branch analysis from position: 32
filename:       /in/Rnt35
function name:  (null)
number of ops:  43
compiled vars:  !0 = $str, !1 = $sKey, !2 = $s, !3 = $j, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '4556494730120644'
    4     1        ASSIGN                                                   !1, '8519293193919192153'
    5     2        ASSIGN                                                   !2, ''
    6     3        ASSIGN                                                   !3, 0
    8     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->33
   10     6    >   INIT_FCALL                                               'chr'
          7        INIT_FCALL                                               'ord'
          8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !4
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $10     
         13        SEND_VAR                                                 $10
         14        DO_ICALL                                         $11     
         15        INIT_FCALL                                               'ord'
         16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !1
         18        POST_INC                                         ~12     !3
         19        SEND_VAL                                                 ~12
         20        SEND_VAL                                                 1
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                         $14     
         24        ADD                                              ~15     $11, $14
         25        SEND_VAL                                                 ~15
         26        DO_ICALL                                         $16     
         27        ASSIGN_OP                                     8          !2, $16
   11    28        STRLEN                                           ~18     !1
         29        IS_EQUAL                                                 !3, ~18
         30      > JMPZ                                                     ~19, ->32
   12    31    >   ASSIGN                                                   !3, 0
    8    32    >   PRE_INC                                                  !4
         33    >   STRLEN                                           ~22     !0
         34        IS_SMALLER                                               !4, ~22
         35      > JMPNZ                                                    ~23, ->6
   16    36    >   ECHO                                                     !2
   17    37        ECHO                                                     '%0A'
   19    38        INIT_FCALL                                               'utf8_encode'
         39        SEND_VAR                                                 !2
         40        DO_ICALL                                         $24     
         41        ECHO                                                     $24
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.7 ms | 1400 KiB | 21 Q