3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); if($lang == 'en') { $langar = $langen; } elseif($lang == 'ne') { $langar = $langne; } else { $langar = $langen; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
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: 12
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
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B3pTG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $lang, !1 = $langar, !2 = $langen, !3 = $langne
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'substr'
          1        FETCH_R                      global              ~4      '_SERVER'
          2        FETCH_DIM_R                                      ~5      ~4, 'HTTP_ACCEPT_LANGUAGE'
          3        SEND_VAL                                                 ~5
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !0, $6
    3     8        IS_EQUAL                                                 !0, 'en'
          9      > JMPZ                                                     ~8, ->12
    4    10    >   ASSIGN                                                   !1, !2
         11      > JMP                                                      ->17
    5    12    >   IS_EQUAL                                                 !0, 'ne'
         13      > JMPZ                                                     ~10, ->16
    6    14    >   ASSIGN                                                   !1, !3
         15      > JMP                                                      ->17
    8    16    >   ASSIGN                                                   !1, !2
    9    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.98 ms | 1395 KiB | 15 Q