3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Disponiveis: '. $_SERVER['HTTP_ACCEPT_LANGUAGE'] .'<br>'; $lang = strstr(Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']), '_'); if($lang === 'pt'){ echo 'Olá amigo'; }else if($lang == 'es'){ echo 'Hola amigo'; }else if($lang == 'en'){ echo 'Hello friend'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 27
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/TDFKu
function name:  (null)
number of ops:  28
compiled vars:  !0 = $lang
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~1      '_SERVER'
          1        FETCH_DIM_R                                      ~2      ~1, 'HTTP_ACCEPT_LANGUAGE'
          2        CONCAT                                           ~3      'Disponiveis%3A+', ~2
          3        CONCAT                                           ~4      ~3, '%3Cbr%3E'
          4        ECHO                                                     ~4
    4     5        INIT_FCALL                                               'strstr'
          6        INIT_STATIC_METHOD_CALL                                  'Locale', 'acceptFromHttp'
          7        CHECK_FUNC_ARG                                           
          8        FETCH_FUNC_ARG               global              $5      '_SERVER'
          9        FETCH_DIM_FUNC_ARG                               $6      $5, 'HTTP_ACCEPT_LANGUAGE'
         10        SEND_FUNC_ARG                                            $6
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        SEND_VAL                                                 '_'
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !0, $8
    6    16        IS_IDENTICAL                                             !0, 'pt'
         17      > JMPZ                                                     ~10, ->20
    7    18    >   ECHO                                                     'Ol%C3%A1+amigo'
         19      > JMP                                                      ->27
    8    20    >   IS_EQUAL                                                 !0, 'es'
         21      > JMPZ                                                     ~11, ->24
    9    22    >   ECHO                                                     'Hola+amigo'
         23      > JMP                                                      ->27
   10    24    >   IS_EQUAL                                                 !0, 'en'
         25      > JMPZ                                                     ~12, ->27
   11    26    >   ECHO                                                     'Hello+friend'
   12    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.54 ms | 1388 KiB | 15 Q