3v4l.org

run code in 300+ PHP versions simultaneously
<?php $langs = " ".$_SERVER['HTTP_ACCEPT_LANGUAGE']; //verfuegbare Sprachen in Array $begruessungen = array('de' => 'Willkommen', 'es' => 'Bienvenido', 'en' => 'Welcome', 'fr' => 'Bienvenue'); //ermitteln der positionen foreach($begruessungen as $code => $gruss) { $pos = strpos($langs, $code); if(intval($pos) != 0) { $position[$code] = intval($pos); } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 19
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/aueee
function name:  (null)
number of ops:  22
compiled vars:  !0 = $langs, !1 = $begruessungen, !2 = $gruss, !3 = $code, !4 = $pos, !5 = $position
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~6      '_SERVER'
          1        FETCH_DIM_R                                      ~7      ~6, 'HTTP_ACCEPT_LANGUAGE'
          2        CONCAT                                           ~8      '+', ~7
          3        ASSIGN                                                   !0, ~8
    4     4        ASSIGN                                                   !1, <array>
   10     5      > FE_RESET_R                                       $11     !1, ->20
          6    > > FE_FETCH_R                                       ~12     $11, !2, ->20
          7    >   ASSIGN                                                   !3, ~12
   11     8        INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $14     
         12        ASSIGN                                                   !4, $14
   12    13        CAST                                          4  ~16     !4
         14        IS_NOT_EQUAL                                             ~16, 0
         15      > JMPZ                                                     ~17, ->19
   13    16    >   CAST                                          4  ~19     !4
         17        ASSIGN_DIM                                               !5, !3
         18        OP_DATA                                                  ~19
   10    19    > > JMP                                                      ->6
         20    >   FE_FREE                                                  $11
   17    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.91 ms | 1399 KiB | 15 Q