3v4l.org

run code in 300+ PHP versions simultaneously
<?php $agent = 'Dotbot'; if ($agent=='' || preg_match('#(megaupload|feedfetcher|yisouspider|httrack|httpclient|surveybot|anonymous|similarpages|webcollage|mj12bot|webcopier|teleport|ispider|wget|offline|websnake|download|ezooms|exabot|gigabot|dotbot|psbot)#i',$agent)) echo 1; else echo 0;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
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
Branch analysis from position: 8
filename:       /in/D886N
function name:  (null)
number of ops:  13
compiled vars:  !0 = $agent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Dotbot'
    4     1        IS_EQUAL                                         ~2      !0, ''
          2      > JMPNZ_EX                                         ~2      ~2, ->8
          3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%23%28megaupload%7Cfeedfetcher%7Cyisouspider%7Chttrack%7Chttpclient%7Csurveybot%7Canonymous%7Csimilarpages%7Cwebcollage%7Cmj12bot%7Cwebcopier%7Cteleport%7Cispider%7Cwget%7Coffline%7Cwebsnake%7Cdownload%7Cezooms%7Cexabot%7Cgigabot%7Cdotbot%7Cpsbot%29%23i'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        BOOL                                             ~2      $3
          8    > > JMPZ                                                     ~2, ->11
    5     9    >   ECHO                                                     1
         10      > JMP                                                      ->12
    7    11    >   ECHO                                                     0
         12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.96 ms | 1395 KiB | 15 Q