3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encodedSecret = "3d3d516343746d4d6d6c315669563362"; function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } if(array_key_exists("submit", $_POST)) { if(encodeSecret($_POST['secret']) == $encodedSecret) { print "Access granted. The password for natas9 is <censored>"; } else { print "Wrong secret"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/jTpvj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $encodedSecret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '3d3d516343746d4d6d6c315669563362'
    8     1        FETCH_R                      global              ~2      '_POST'
          2        ARRAY_KEY_EXISTS                                         'submit', ~2
          3      > JMPZ                                                     ~3, ->14
    9     4    >   INIT_FCALL                                               'encodesecret'
          5        FETCH_R                      global              ~4      '_POST'
          6        FETCH_DIM_R                                      ~5      ~4, 'secret'
          7        SEND_VAL                                                 ~5
          8        DO_FCALL                                      0  $6      
          9        IS_EQUAL                                                 !0, $6
         10      > JMPZ                                                     ~7, ->13
   10    11    >   ECHO                                                     'Access+granted.+The+password+for+natas9+is+%3Ccensored%3E'
         12      > JMP                                                      ->14
   12    13    >   ECHO                                                     'Wrong+secret'
   15    14    > > RETURN                                                   1

Function encodesecret:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jTpvj
function name:  encodeSecret
number of ops:  12
compiled vars:  !0 = $secret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'bin2hex'
          2        INIT_FCALL                                               'strrev'
          3        INIT_FCALL                                               'base64_encode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10      > RETURN                                                   $3
    6    11*     > RETURN                                                   null

End of function encodesecret

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.37 ms | 1399 KiB | 20 Q