3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('__FLAG__','3xZG{dgznclXAwFVCUHPMWFViZBDSsltxKdrvFBVYHSr1}'); function stypr_crypt($_0){$_1 = $_2 = $_3 = array(); $_4 =array('?','(','@', ';', '$','#', ']', '&', '*'); $_4 = array_merge($_4,range('a','z'),range('0','9'),range('A','Z')); $_4 = array_merge($_4,array('!', ')', '_', '+', '|', '%', '/', '[', '.', ' ')); for($_5=9,$_6=0;$_6 < $_5;$_6++){ for($_7=0;$_7<$_5;$_7++){$_2[$_6][$_7] = $_4[$_6*$_5+$_7]; $_3[$_6][$_7] = str_rot13($_4[($_5*$_5-1)-($_6*$_5+$_7)]);} } unset($_4); $_8 = floor(strlen($_0)/2)*2; $_9 = ($_8 == strlen($_0))?'':$_0[strlen($_0)-1]; $_10 =array(); for($_11 = 0;$_11 < $_8;$_11+=2){$_12 = $_13 = strval($_0[$_11]); $_14 = $_15 = strval($_0[$_11+1]); $_16 = $_17 = array(); $_6=0; } } if(__FLAG__ === stypr_crypt(stypr_crypt(stypr_crypt($_GET['flag'])))) echo 'Correct!'; else echo 'Incorrect..'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ts1ri
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 '__FLAG__'
          2        SEND_VAL                                                 '3xZG%7BdgznclXAwFVCUHPMWFViZBDSsltxKdrvFBVYHSr1%7D'
          3        DO_ICALL                                                 
    7     4        FETCH_CONSTANT                                   ~1      '__FLAG__'
          5        INIT_FCALL                                               'stypr_crypt'
          6        INIT_FCALL                                               'stypr_crypt'
          7        INIT_FCALL                                               'stypr_crypt'
          8        FETCH_R                      global              ~2      '_GET'
          9        FETCH_DIM_R                                      ~3      ~2, 'flag'
         10        SEND_VAL                                                 ~3
         11        DO_FCALL                                      0  $4      
         12        SEND_VAR                                                 $4
         13        DO_FCALL                                      0  $5      
         14        SEND_VAR                                                 $5
         15        DO_FCALL                                      0  $6      
         16        IS_IDENTICAL                                             $6, ~1
         17      > JMPZ                                                     ~7, ->20
    8    18    >   ECHO                                                     'Correct%21'
         19      > JMP                                                      ->21
   10    20    >   ECHO                                                     'Incorrect..'
   16    21    > > RETURN                                                   1

Function stypr_crypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 32
Branch analysis from position: 58
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 71
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
1 jumps found. (Code = 42) Position 1 = 92
Branch analysis from position: 92
2 jumps found. (Code = 44) Position 1 = 94, Position 2 = 79
Branch analysis from position: 94
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 79
2 jumps found. (Code = 44) Position 1 = 94, Position 2 = 79
Branch analysis from position: 94
Branch analysis from position: 79
Branch analysis from position: 71
1 jumps found. (Code = 42) Position 1 = 92
Branch analysis from position: 92
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
2 jumps found. (Code = 44) Position 1 = 55, Position 2 = 34
Branch analysis from position: 55
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 32
Branch analysis from position: 58
Branch analysis from position: 32
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 55, Position 2 = 34
Branch analysis from position: 55
Branch analysis from position: 34
filename:       /in/ts1ri
function name:  stypr_crypt
number of ops:  95
compiled vars:  !0 = $_0, !1 = $_1, !2 = $_2, !3 = $_3, !4 = $_4, !5 = $_5, !6 = $_6, !7 = $_7, !8 = $_8, !9 = $_9, !10 = $_10, !11 = $_11, !12 = $_12, !13 = $_13, !14 = $_14, !15 = $_15, !16 = $_16, !17 = $_17
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        ASSIGN                                           ~18     !3, <array>
          2        ASSIGN                                           ~19     !2, ~18
          3        ASSIGN                                                   !1, ~19
          4        ASSIGN                                                   !4, <array>
          5        INIT_FCALL                                               'array_merge'
          6        SEND_VAR                                                 !4
          7        INIT_FCALL                                               'range'
          8        SEND_VAL                                                 'a'
          9        SEND_VAL                                                 'z'
         10        DO_ICALL                                         $22     
         11        SEND_VAR                                                 $22
         12        INIT_FCALL                                               'range'
         13        SEND_VAL                                                 '0'
         14        SEND_VAL                                                 '9'
         15        DO_ICALL                                         $23     
         16        SEND_VAR                                                 $23
         17        INIT_FCALL                                               'range'
         18        SEND_VAL                                                 'A'
         19        SEND_VAL                                                 'Z'
         20        DO_ICALL                                         $24     
         21        SEND_VAR                                                 $24
         22        DO_ICALL                                         $25     
         23        ASSIGN                                                   !4, $25
         24        INIT_FCALL                                               'array_merge'
         25        SEND_VAR                                                 !4
         26        SEND_VAL                                                 <array>
         27        DO_ICALL                                         $27     
         28        ASSIGN                                                   !4, $27
         29        ASSIGN                                                   !5, 9
         30        ASSIGN                                                   !6, 0
         31      > JMP                                                      ->56
         32    >   ASSIGN                                                   !7, 0
         33      > JMP                                                      ->53
         34    >   MUL                                              ~34     !6, !5
         35        ADD                                              ~35     ~34, !7
         36        FETCH_DIM_R                                      ~36     !4, ~35
         37        FETCH_DIM_W                                      $32     !2, !6
         38        ASSIGN_DIM                                               $32, !7
         39        OP_DATA                                                  ~36
         40        INIT_FCALL                                               'str_rot13'
         41        MUL                                              ~39     !5, !5
         42        SUB                                              ~40     ~39, 1
         43        MUL                                              ~41     !6, !5
         44        ADD                                              ~42     ~41, !7
         45        SUB                                              ~43     ~40, ~42
         46        FETCH_DIM_R                                      ~44     !4, ~43
         47        SEND_VAL                                                 ~44
         48        DO_ICALL                                         $45     
         49        FETCH_DIM_W                                      $37     !3, !6
         50        ASSIGN_DIM                                               $37, !7
         51        OP_DATA                                                  $45
         52        PRE_INC                                                  !7
         53    >   IS_SMALLER                                               !7, !5
         54      > JMPNZ                                                    ~47, ->34
         55    >   PRE_INC                                                  !6
         56    >   IS_SMALLER                                               !6, !5
         57      > JMPNZ                                                    ~49, ->32
         58    >   UNSET_CV                                                 !4
         59        INIT_FCALL                                               'floor'
         60        STRLEN                                           ~50     !0
         61        DIV                                              ~51     ~50, 2
         62        SEND_VAL                                                 ~51
         63        DO_ICALL                                         $52     
         64        MUL                                              ~53     $52, 2
         65        ASSIGN                                                   !8, ~53
         66        STRLEN                                           ~55     !0
         67        IS_EQUAL                                                 !8, ~55
         68      > JMPZ                                                     ~56, ->71
         69    >   QM_ASSIGN                                        ~57     ''
         70      > JMP                                                      ->75
         71    >   STRLEN                                           ~58     !0
         72        SUB                                              ~59     ~58, 1
         73        FETCH_DIM_R                                      ~60     !0, ~59
         74        QM_ASSIGN                                        ~57     ~60
         75    >   ASSIGN                                                   !9, ~57
         76        ASSIGN                                                   !10, <array>
         77        ASSIGN                                                   !11, 0
         78      > JMP                                                      ->92
         79    >   FETCH_DIM_R                                      ~64     !0, !11
         80        CAST                                          6  ~65     ~64
         81        ASSIGN                                           ~66     !13, ~65
         82        ASSIGN                                                   !12, ~66
         83        ADD                                              ~68     !11, 1
         84        FETCH_DIM_R                                      ~69     !0, ~68
         85        CAST                                          6  ~70     ~69
         86        ASSIGN                                           ~71     !15, ~70
         87        ASSIGN                                                   !14, ~71
         88        ASSIGN                                           ~73     !17, <array>
         89        ASSIGN                                                   !16, ~73
         90        ASSIGN                                                   !6, 0
         91        ASSIGN_OP                                     1          !11, 2
         92    >   IS_SMALLER                                               !11, !8
         93      > JMPNZ                                                    ~77, ->79
    5    94    > > RETURN                                                   null

End of function stypr_crypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.51 ms | 1398 KiB | 26 Q