3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fetch_style_title_options_array() { return array( "Desktop" => 1, "Mobile" => 2, "Topify seo" => 3); } $HTTP_USER_AGENT = "aaaaaaGoogleBOTbbbbb"; //$_SERVER['HTTP_USER_AGENT'] $TOPIFY_SEO_STYLE = "Topify SEO"; //whatever we name our seo skin $SEO_AGENTS = "test1|Googlebot|test3"; //$custom1agents = str_replace(",","|",$seo_agents);//explode(",",$seo_agents); if(array_key_exists($TOPIFY_SEO_STYLE, fetch_style_title_options_array())) { if(preg_match('/('.$SEO_AGENTS.')/i', $HTTP_USER_AGENT, $match)) { echo "display seo skin"; } else { echo "do not display seo skin"; } } else { echo "topify seo not installed"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RBZrl
function name:  (null)
number of ops:  21
compiled vars:  !0 = $HTTP_USER_AGENT, !1 = $TOPIFY_SEO_STYLE, !2 = $SEO_AGENTS, !3 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'aaaaaaGoogleBOTbbbbb'
   13     1        ASSIGN                                                   !1, 'Topify+SEO'
   14     2        ASSIGN                                                   !2, 'test1%7CGooglebot%7Ctest3'
   19     3        INIT_FCALL                                               'fetch_style_title_options_array'
          4        DO_FCALL                                      0  $7      
          5        ARRAY_KEY_EXISTS                                         !1, $7
          6      > JMPZ                                                     ~8, ->19
   21     7    >   INIT_FCALL                                               'preg_match'
          8        CONCAT                                           ~9      '%2F%28', !2
          9        CONCAT                                           ~10     ~9, '%29%2Fi'
         10        SEND_VAL                                                 ~10
         11        SEND_VAR                                                 !0
         12        SEND_REF                                                 !3
         13        DO_ICALL                                         $11     
         14      > JMPZ                                                     $11, ->17
   23    15    >   ECHO                                                     'display+seo+skin'
         16      > JMP                                                      ->18
   27    17    >   ECHO                                                     'do+not+display+seo+skin'
         18    > > JMP                                                      ->20
   32    19    >   ECHO                                                     'topify+seo+not+installed'
   33    20    > > RETURN                                                   1

Function fetch_style_title_options_array:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RBZrl
function name:  fetch_style_title_options_array
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <array>
    9     1*     > RETURN                                                   null

End of function fetch_style_title_options_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.12 ms | 1399 KiB | 16 Q