3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowed_ips = array("80.63.34.202"); echo $_SERVER['REMOTE_ADDR']; if (in_array($_SERVER['REMOTE_ADDR'], $allowed_ips)) print 'redirect'; else print 'good to go';
Finding entry points
Branch analysis from position: 0
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
filename:       /in/b1Rn2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $allowed_ips
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_R                      global              ~2      '_SERVER'
          2        FETCH_DIM_R                                      ~3      ~2, 'REMOTE_ADDR'
          3        ECHO                                                     ~3
    7     4        INIT_FCALL                                               'in_array'
          5        FETCH_R                      global              ~4      '_SERVER'
          6        FETCH_DIM_R                                      ~5      ~4, 'REMOTE_ADDR'
          7        SEND_VAL                                                 ~5
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10      > JMPZ                                                     $6, ->13
    8    11    >   ECHO                                                     'redirect'
         12      > JMP                                                      ->14
   10    13    >   ECHO                                                     'good+to+go'
         14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.88 ms | 1394 KiB | 15 Q