3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.62 ms | 1386 KiB | 17 Q