3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ 'param1' => 3000, 'param2' => 'campaign2' ]; $allowed_param = array ( '3000', '4000', '5000', ); if (isset($_GET['param1']) && $_GET['param2'] == 'campaign1') { if (!in_array($_GET["param1"], $allowed_param)) { //Header('Referer: https://google.com'); //Header('Location: https://camp1.contoso.com/'); die(1); } else { //Header('Referer: https://google.com'); //Header('Location: https://camp1.contoso.com/'); die(2); } } if (isset($_GET['param1']) && $_GET['param2'] == 'campaign2') { if (!in_array($_GET["param1"], $allowed_param)) { //Header('Referer: https://google.com'); //Header('Location: https://camp2.contoso.com/'); die(3); } else { //Header('Referer: https://google.com'); //Header('Location: https://camp2.contoso.com'); die(4); } } die(5);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 41
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 40
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 41
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 10
filename:       /in/Tk2JE
function name:  (null)
number of ops:  43
compiled vars:  !0 = $allowed_param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $1      '_GET'
          1        ASSIGN                                                   $1, <array>
    8     2        ASSIGN                                                   !0, <array>
   14     3        FETCH_IS                                         ~4      '_GET'
          4        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      ~4, 'param1'
          5      > JMPZ_EX                                          ~5      ~5, ->10
          6    >   FETCH_R                      global              ~6      '_GET'
          7        FETCH_DIM_R                                      ~7      ~6, 'param2'
          8        IS_EQUAL                                         ~8      ~7, 'campaign1'
          9        BOOL                                             ~5      ~8
         10    > > JMPZ                                                     ~5, ->22
   15    11    >   INIT_FCALL                                               'in_array'
         12        FETCH_R                      global              ~9      '_GET'
         13        FETCH_DIM_R                                      ~10     ~9, 'param1'
         14        SEND_VAL                                                 ~10
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $11     
         17        BOOL_NOT                                         ~12     $11
         18      > JMPZ                                                     ~12, ->21
   18    19    > > EXIT                                                     1
         20*       JMP                                                      ->22
   23    21    > > EXIT                                                     2
   27    22    >   FETCH_IS                                         ~13     '_GET'
         23        ISSET_ISEMPTY_DIM_OBJ                         0  ~14     ~13, 'param1'
         24      > JMPZ_EX                                          ~14     ~14, ->29
         25    >   FETCH_R                      global              ~15     '_GET'
         26        FETCH_DIM_R                                      ~16     ~15, 'param2'
         27        IS_EQUAL                                         ~17     ~16, 'campaign2'
         28        BOOL                                             ~14     ~17
         29    > > JMPZ                                                     ~14, ->41
   28    30    >   INIT_FCALL                                               'in_array'
         31        FETCH_R                      global              ~18     '_GET'
         32        FETCH_DIM_R                                      ~19     ~18, 'param1'
         33        SEND_VAL                                                 ~19
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                         $20     
         36        BOOL_NOT                                         ~21     $20
         37      > JMPZ                                                     ~21, ->40
   31    38    > > EXIT                                                     3
         39*       JMP                                                      ->41
   35    40    > > EXIT                                                     4
   38    41    > > EXIT                                                     5
         42*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
237.99 ms | 1400 KiB | 15 Q