3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ($oses as $os => $identificator) { if (is_array($identificator)) { foreach ($identificator as $ident) { if (preg_match("#$ident#i", $useragent)) { $browser['os'] = $os; break; } } } else { if (preg_match("#$identificator#i", $useragent)) { $browser['os'] = $os; break; } } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 33
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 33
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 19
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 19
Branch analysis from position: 19
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 33
Branch analysis from position: 33
filename:       /in/gXl2F
function name:  (null)
number of ops:  35
compiled vars:  !0 = $oses, !1 = $identificator, !2 = $os, !3 = $ident, !4 = $useragent, !5 = $browser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $6      !0, ->33
          1    > > FE_FETCH_R                                       ~7      $6, !1, ->33
          2    >   ASSIGN                                                   !2, ~7
    5     3        TYPE_CHECK                                  128          !1
          4      > JMPZ                                                     ~9, ->21
    7     5    > > FE_RESET_R                                       $10     !1, ->19
          6    > > FE_FETCH_R                                               $10, !3, ->19
    9     7    >   INIT_FCALL                                               'preg_match'
          8        ROPE_INIT                                     3  ~12     '%23'
          9        ROPE_ADD                                      1  ~12     ~12, !3
         10        ROPE_END                                      2  ~11     ~12, '%23i'
         11        SEND_VAL                                                 ~11
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                         $14     
         14      > JMPZ                                                     $14, ->18
   11    15    >   ASSIGN_DIM                                               !5, 'os'
         16        OP_DATA                                                  !2
   12    17      > JMP                                                      ->19
    7    18    > > JMP                                                      ->6
         19    >   FE_FREE                                                  $10
         20      > JMP                                                      ->32
   18    21    >   INIT_FCALL                                               'preg_match'
         22        ROPE_INIT                                     3  ~17     '%23'
         23        ROPE_ADD                                      1  ~17     ~17, !1
         24        ROPE_END                                      2  ~16     ~17, '%23i'
         25        SEND_VAL                                                 ~16
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                         $19     
         28      > JMPZ                                                     $19, ->32
   20    29    >   ASSIGN_DIM                                               !5, 'os'
         30        OP_DATA                                                  !2
   21    31      > JMP                                                      ->33
    3    32    > > JMP                                                      ->1
         33    >   FE_FREE                                                  $6
   27    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.61 ms | 1392 KiB | 15 Q