3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST["kfc"] = true ; $_GET["man"] = "aaaa;"; $b = array("K","F","C"); $B = $_POST["kfc"]; if($B == $b && $B !== $b){ var_dump(preg_replace('/;+/','vivo50',preg_replace('/[A-Za-z_\(\)]+/','',$_GET["man"]))); if('vivo50' === preg_replace('/;+/','vivo50',preg_replace('/[A-Za-z_\(\)]+/','',$_GET["man"]))){ eval($_GET["man"].'giveme50!'); } else{ echo "joker"; } } else{ echo "nonono!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 51
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 49
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/q16oT
function name:  (null)
number of ops:  53
compiled vars:  !0 = $b, !1 = $B
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $2      '_POST'
          1        ASSIGN_DIM                                               $2, 'kfc'
          2        OP_DATA                                                  <true>
    3     3        FETCH_W                      global              $4      '_GET'
          4        ASSIGN_DIM                                               $4, 'man'
          5        OP_DATA                                                  'aaaa%3B'
    4     6        ASSIGN                                                   !0, <array>
    5     7        FETCH_R                      global              ~7      '_POST'
          8        FETCH_DIM_R                                      ~8      ~7, 'kfc'
          9        ASSIGN                                                   !1, ~8
    6    10        IS_EQUAL                                         ~10     !1, !0
         11      > JMPZ_EX                                          ~10     ~10, ->14
         12    >   IS_NOT_IDENTICAL                                 ~11     !1, !0
         13        BOOL                                             ~10     ~11
         14    > > JMPZ                                                     ~10, ->51
    8    15    >   INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'preg_replace'
         17        SEND_VAL                                                 '%2F%3B%2B%2F'
         18        SEND_VAL                                                 'vivo50'
         19        INIT_FCALL                                               'preg_replace'
         20        SEND_VAL                                                 '%2F%5BA-Za-z_%5C%28%5C%29%5D%2B%2F'
         21        SEND_VAL                                                 ''
         22        FETCH_R                      global              ~12     '_GET'
         23        FETCH_DIM_R                                      ~13     ~12, 'man'
         24        SEND_VAL                                                 ~13
         25        DO_ICALL                                         $14     
         26        SEND_VAR                                                 $14
         27        DO_ICALL                                         $15     
         28        SEND_VAR                                                 $15
         29        DO_ICALL                                                 
    9    30        INIT_FCALL                                               'preg_replace'
         31        SEND_VAL                                                 '%2F%3B%2B%2F'
         32        SEND_VAL                                                 'vivo50'
         33        INIT_FCALL                                               'preg_replace'
         34        SEND_VAL                                                 '%2F%5BA-Za-z_%5C%28%5C%29%5D%2B%2F'
         35        SEND_VAL                                                 ''
         36        FETCH_R                      global              ~17     '_GET'
         37        FETCH_DIM_R                                      ~18     ~17, 'man'
         38        SEND_VAL                                                 ~18
         39        DO_ICALL                                         $19     
         40        SEND_VAR                                                 $19
         41        DO_ICALL                                         $20     
         42        IS_IDENTICAL                                             $20, 'vivo50'
         43      > JMPZ                                                     ~21, ->49
   10    44    >   FETCH_R                      global              ~22     '_GET'
         45        FETCH_DIM_R                                      ~23     ~22, 'man'
         46        CONCAT                                           ~24     ~23, 'giveme50%21'
         47        INCLUDE_OR_EVAL                                          ~24, EVAL
    9    48      > JMP                                                      ->50
   13    49    >   ECHO                                                     'joker'
    6    50    > > JMP                                                      ->52
   17    51    >   ECHO                                                     'nonono%21'
   18    52    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.59 ms | 1016 KiB | 15 Q