3v4l.org

run code in 300+ PHP versions simultaneously
<?php $GLOBALS['RUsjOyxn'] = $_SERVER; function deobfuscate($string) { $result_string = ""; global $obfuscation_constant; for ($i = 0; $i < strlen($string); $i++) { $a = $i % 12; $b = ord($string[$i]) - $a - $obfuscation_constant; if ($b < 32) { $b = $b + 94; } $result_string.= chr($b); } return $result_string; } $obfuscation_constant = 684 ^ 681; echo deobfuscate("MZ[Xh\\PRR`Tb"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/90HaL
function name:  (null)
number of ops:  10
compiled vars:  !0 = $obfuscation_constant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~3      '_SERVER'
          1        FETCH_W                      global              $1      'GLOBALS'
          2        ASSIGN_DIM                                               $1, 'RUsjOyxn'
          3        OP_DATA                                                  ~3
   24     4        ASSIGN                                                   !0, 5
   26     5        INIT_FCALL                                               'deobfuscate'
          6        SEND_VAL                                                 'MZ%5BXh%5CPRR%60Tb'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
   27     9      > RETURN                                                   1

Function deobfuscate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 5
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 5
Branch analysis from position: 26
Branch analysis from position: 5
Branch analysis from position: 18
filename:       /in/90HaL
function name:  deobfuscate
number of ops:  28
compiled vars:  !0 = $string, !1 = $result_string, !2 = $obfuscation_constant, !3 = $i, !4 = $a, !5 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        ASSIGN                                                   !1, ''
    8     2        BIND_GLOBAL                                              !2, 'obfuscation_constant'
    9     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->23
   11     5    >   MOD                                              ~8      !3, 12
          6        ASSIGN                                                   !4, ~8
   12     7        INIT_FCALL                                               'ord'
          8        FETCH_DIM_R                                      ~10     !0, !3
          9        SEND_VAL                                                 ~10
         10        DO_ICALL                                         $11     
         11        SUB                                              ~12     $11, !4
         12        SUB                                              ~13     ~12, !2
         13        ASSIGN                                                   !5, ~13
   13    14        IS_SMALLER                                               !5, 32
         15      > JMPZ                                                     ~15, ->18
   15    16    >   ADD                                              ~16     !5, 94
         17        ASSIGN                                                   !5, ~16
   18    18    >   INIT_FCALL                                               'chr'
         19        SEND_VAR                                                 !5
         20        DO_ICALL                                         $18     
         21        ASSIGN_OP                                     8          !1, $18
    9    22        PRE_INC                                                  !3
         23    >   STRLEN                                           ~21     !0
         24        IS_SMALLER                                               !3, ~21
         25      > JMPNZ                                                    ~22, ->5
   21    26    > > RETURN                                                   !1
   22    27*     > RETURN                                                   null

End of function deobfuscate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.28 ms | 1402 KiB | 18 Q