3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pwd = 'Hello World'; $key = "ª®µ4_ψ¶-(o)(o)-¼8ØaQφ"; $result = ""; $string = base64_decode($pwd); for ($i = 0; $i < strlen($string); $i++) { $char = substr($string, $i, 1); $keychar = substr($key, ($i % strlen($key)) - 1, 1); $char = chr(ord($char) - ord($keychar)); $result.=$char; } echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 9
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 9
Branch analysis from position: 40
Branch analysis from position: 9
filename:       /in/kQ6GD
function name:  (null)
number of ops:  42
compiled vars:  !0 = $pwd, !1 = $key, !2 = $result, !3 = $string, !4 = $i, !5 = $char, !6 = $keychar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello+World'
    3     1        ASSIGN                                                   !1, '%C2%AA%C2%AE%C2%B54_%CF%88%C2%B6-%28o%29%28o%29-%C2%BC8%C3%98aQ%CF%86'
    4     2        ASSIGN                                                   !2, ''
    5     3        INIT_FCALL                                               'base64_decode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $10     
          6        ASSIGN                                                   !3, $10
    6     7        ASSIGN                                                   !4, 0
          8      > JMP                                                      ->37
    8     9    >   INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !3
         11        SEND_VAR                                                 !4
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $13     
         14        ASSIGN                                                   !5, $13
    9    15        INIT_FCALL                                               'substr'
         16        SEND_VAR                                                 !1
         17        STRLEN                                           ~15     !1
         18        MOD                                              ~16     !4, ~15
         19        SUB                                              ~17     ~16, 1
         20        SEND_VAL                                                 ~17
         21        SEND_VAL                                                 1
         22        DO_ICALL                                         $18     
         23        ASSIGN                                                   !6, $18
   10    24        INIT_FCALL                                               'chr'
         25        INIT_FCALL                                               'ord'
         26        SEND_VAR                                                 !5
         27        DO_ICALL                                         $20     
         28        INIT_FCALL                                               'ord'
         29        SEND_VAR                                                 !6
         30        DO_ICALL                                         $21     
         31        SUB                                              ~22     $20, $21
         32        SEND_VAL                                                 ~22
         33        DO_ICALL                                         $23     
         34        ASSIGN                                                   !5, $23
   11    35        ASSIGN_OP                                     8          !2, !5
    6    36        PRE_INC                                                  !4
         37    >   STRLEN                                           ~27     !3
         38        IS_SMALLER                                               !4, ~27
         39      > JMPNZ                                                    ~28, ->9
   13    40    >   ECHO                                                     !2
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.49 ms | 1400 KiB | 21 Q