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(strlne($_0)/2)*2; } 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/OIj8p
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                                                 
    6     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
    7    18    >   ECHO                                                     'Correct%21'
         19      > JMP                                                      ->21
    9    20    >   ECHO                                                     'Incorrect..'
   15    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
1 jumps found. (Code = 62) Position 1 = -2
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/OIj8p
function name:  stypr_crypt
number of ops:  69
compiled vars:  !0 = $_0, !1 = $_1, !2 = $_2, !3 = $_3, !4 = $_4, !5 = $_5, !6 = $_6, !7 = $_7, !8 = $_8
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        ASSIGN                                           ~9      !3, <array>
          2        ASSIGN                                           ~10     !2, ~9
          3        ASSIGN                                                   !1, ~10
          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                                         $13     
         11        SEND_VAR                                                 $13
         12        INIT_FCALL                                               'range'
         13        SEND_VAL                                                 '0'
         14        SEND_VAL                                                 '9'
         15        DO_ICALL                                         $14     
         16        SEND_VAR                                                 $14
         17        INIT_FCALL                                               'range'
         18        SEND_VAL                                                 'A'
         19        SEND_VAL                                                 'Z'
         20        DO_ICALL                                         $15     
         21        SEND_VAR                                                 $15
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !4, $16
         24        INIT_FCALL                                               'array_merge'
         25        SEND_VAR                                                 !4
         26        SEND_VAL                                                 <array>
         27        DO_ICALL                                         $18     
         28        ASSIGN                                                   !4, $18
         29        ASSIGN                                                   !5, 9
         30        ASSIGN                                                   !6, 0
         31      > JMP                                                      ->56
         32    >   ASSIGN                                                   !7, 0
         33      > JMP                                                      ->53
         34    >   MUL                                              ~25     !6, !5
         35        ADD                                              ~26     ~25, !7
         36        FETCH_DIM_R                                      ~27     !4, ~26
         37        FETCH_DIM_W                                      $23     !2, !6
         38        ASSIGN_DIM                                               $23, !7
         39        OP_DATA                                                  ~27
         40        INIT_FCALL                                               'str_rot13'
         41        MUL                                              ~30     !5, !5
         42        SUB                                              ~31     ~30, 1
         43        MUL                                              ~32     !6, !5
         44        ADD                                              ~33     ~32, !7
         45        SUB                                              ~34     ~31, ~33
         46        FETCH_DIM_R                                      ~35     !4, ~34
         47        SEND_VAL                                                 ~35
         48        DO_ICALL                                         $36     
         49        FETCH_DIM_W                                      $28     !3, !6
         50        ASSIGN_DIM                                               $28, !7
         51        OP_DATA                                                  $36
         52        PRE_INC                                                  !7
         53    >   IS_SMALLER                                               !7, !5
         54      > JMPNZ                                                    ~38, ->34
         55    >   PRE_INC                                                  !6
         56    >   IS_SMALLER                                               !6, !5
         57      > JMPNZ                                                    ~40, ->32
         58    >   UNSET_CV                                                 !4
         59        INIT_FCALL                                               'floor'
         60        INIT_FCALL_BY_NAME                                       'strlne'
         61        SEND_VAR_EX                                              !0
         62        DO_FCALL                                      0  $41     
         63        DIV                                              ~42     $41, 2
         64        SEND_VAL                                                 ~42
         65        DO_ICALL                                         $43     
         66        MUL                                              ~44     $43, 2
         67        ASSIGN                                                   !8, ~44
         68      > RETURN                                                   null

End of function stypr_crypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
244.94 ms | 1407 KiB | 26 Q