3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts=explode('.',$_SERVER['HTTP_HOST']); if(isset($parts[2]) && !empty($parts[2])) { switch($parts[2]) { case 'nl': echo "404"; break; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 20
Branch analysis from position: 12
filename:       /in/4TKNT
function name:  (null)
number of ops:  21
compiled vars:  !0 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '.'
          2        FETCH_R                      global              ~1      '_SERVER'
          3        FETCH_DIM_R                                      ~2      ~1, 'HTTP_HOST'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     7        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !0, 2
          8      > JMPZ_EX                                          ~5      ~5, ->12
          9    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~6      !0, 2
         10        BOOL_NOT                                         ~7      ~6
         11        BOOL                                             ~5      ~7
         12    > > JMPZ                                                     ~5, ->20
    5    13    >   FETCH_DIM_R                                      ~8      !0, 2
    6    14        CASE                                                     ~8, 'nl'
         15      > JMPNZ                                                    ~9, ->17
         16    > > JMP                                                      ->19
    7    17    >   ECHO                                                     '404'
    8    18      > JMP                                                      ->19
         19    >   FREE                                                     ~8
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.09 ms | 1395 KiB | 15 Q