3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isAb = false; $t = array(); if(isset($t['HTTP_USER_AGENT'])){ $sessionLessUseragents = array( 'ApacheBench', 'http://www.majestic12.co.uk/bot.php', 'http://www.google.com/bot.html', 'http://yandex.com/bots', 'http://www.bing.com/bingbot.htm', 'http://search.msn.com/msnbot.htm', 'http://ahrefs.com/robot/', 'http://www.baidu.com/search/spider.html', 'http://www.projectwonderful.com/', 'http://webmeup-crawler.com/', 'http://OpenLinkProfiler.org/bot', 'http://www.pingdom.com', 'http://www.opensiteexplorer.org/dotbot', 'http://www.easou.com/search/spider.html', ); foreach($sessionLessUseragents as $sessionLessUseragent){ if(strrpos($t['HTTP_USER_AGENT'], $sessionLessUseragent) !== false){ $isAb = true; break; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 17
Branch analysis from position: 17
Branch analysis from position: 18
filename:       /in/kLBLR
function name:  (null)
number of ops:  19
compiled vars:  !0 = $isAb, !1 = $t, !2 = $sessionLessUseragents, !3 = $sessionLessUseragent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <false>
    5     1        ASSIGN                                                   !1, <array>
    6     2        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'HTTP_USER_AGENT'
          3      > JMPZ                                                     ~6, ->18
    7     4    >   ASSIGN                                                   !2, <array>
   23     5      > FE_RESET_R                                       $8      !2, ->17
          6    > > FE_FETCH_R                                               $8, !3, ->17
   24     7    >   INIT_FCALL                                               'strrpos'
          8        FETCH_DIM_R                                      ~9      !1, 'HTTP_USER_AGENT'
          9        SEND_VAL                                                 ~9
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $10     
         12        TYPE_CHECK                                  1018          $10
         13      > JMPZ                                                     ~11, ->16
   25    14    >   ASSIGN                                                   !0, <true>
   26    15      > JMP                                                      ->17
   23    16    > > JMP                                                      ->6
         17    >   FE_FREE                                                  $8
   29    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.76 ms | 1395 KiB | 15 Q