3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_SERVER['HTTP_USER_AGENT']) && !strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot")) { echo 'You\'re not a google bot!'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 14
filename:       /in/9cuXF
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_IS                                         ~0      '_SERVER'
          1        ISSET_ISEMPTY_DIM_OBJ                         0  ~1      ~0, 'HTTP_USER_AGENT'
          2      > JMPZ_EX                                          ~1      ~1, ->14
          3    >   INIT_FCALL                                               'strstr'
          4        INIT_FCALL                                               'strtolower'
          5        FETCH_R                      global              ~2      '_SERVER'
          6        FETCH_DIM_R                                      ~3      ~2, 'HTTP_USER_AGENT'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        SEND_VAL                                                 'googlebot'
         11        DO_ICALL                                         $5      
         12        BOOL_NOT                                         ~6      $5
         13        BOOL                                             ~1      ~6
         14    > > JMPZ                                                     ~1, ->16
    4    15    >   ECHO                                                     'You%27re+not+a+google+bot%21'
    5    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.04 ms | 1395 KiB | 17 Q