3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.01 ms | 1394 KiB | 15 Q