3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo converCompetencia("01"); function converteCompetencia($compet) { switch ($compet) { case '01': return 'Jan'; break; case '02': return 'Fev'; break; case '03': return 'Mar'; break; case '04': return 'Abr'; break; case '05': return 'Mai'; break; case '06': return 'Jun'; break; case '07': return 'Jul'; break; case '08': return 'Ago'; break; case '09': return 'Set'; break; case '10': return 'Out'; break; case '11': return 'Nov'; break; case '12': return 'Dez'; break; default: return '-'; break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTD5r
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'converCompetencia'
          1        SEND_VAL_EX                                              '01'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   47     4      > RETURN                                                   1

Function convertecompetencia:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 26
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 28
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 30
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 32
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 34
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 36
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 38
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 40
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 42
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 44
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 46
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 48
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTD5r
function name:  converteCompetencia
number of ops:  53
compiled vars:  !0 = $compet
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        IS_EQUAL                                                 !0, '01'
          2      > JMPNZ                                                    ~1, ->26
   10     3    >   IS_EQUAL                                                 !0, '02'
          4      > JMPNZ                                                    ~1, ->28
   13     5    >   IS_EQUAL                                                 !0, '03'
          6      > JMPNZ                                                    ~1, ->30
   16     7    >   IS_EQUAL                                                 !0, '04'
          8      > JMPNZ                                                    ~1, ->32
   19     9    >   IS_EQUAL                                                 !0, '05'
         10      > JMPNZ                                                    ~1, ->34
   22    11    >   IS_EQUAL                                                 !0, '06'
         12      > JMPNZ                                                    ~1, ->36
   25    13    >   IS_EQUAL                                                 !0, '07'
         14      > JMPNZ                                                    ~1, ->38
   28    15    >   IS_EQUAL                                                 !0, '08'
         16      > JMPNZ                                                    ~1, ->40
   31    17    >   IS_EQUAL                                                 !0, '09'
         18      > JMPNZ                                                    ~1, ->42
   34    19    >   IS_EQUAL                                                 !0, '10'
         20      > JMPNZ                                                    ~1, ->44
   37    21    >   IS_EQUAL                                                 !0, '11'
         22      > JMPNZ                                                    ~1, ->46
   40    23    >   IS_EQUAL                                                 !0, '12'
         24      > JMPNZ                                                    ~1, ->48
         25    > > JMP                                                      ->50
    8    26    > > RETURN                                                   'Jan'
    9    27*       JMP                                                      ->52
   11    28    > > RETURN                                                   'Fev'
   12    29*       JMP                                                      ->52
   14    30    > > RETURN                                                   'Mar'
   15    31*       JMP                                                      ->52
   17    32    > > RETURN                                                   'Abr'
   18    33*       JMP                                                      ->52
   20    34    > > RETURN                                                   'Mai'
   21    35*       JMP                                                      ->52
   23    36    > > RETURN                                                   'Jun'
   24    37*       JMP                                                      ->52
   26    38    > > RETURN                                                   'Jul'
   27    39*       JMP                                                      ->52
   29    40    > > RETURN                                                   'Ago'
   30    41*       JMP                                                      ->52
   32    42    > > RETURN                                                   'Set'
   33    43*       JMP                                                      ->52
   35    44    > > RETURN                                                   'Out'
   36    45*       JMP                                                      ->52
   38    46    > > RETURN                                                   'Nov'
   39    47*       JMP                                                      ->52
   41    48    > > RETURN                                                   'Dez'
   42    49*       JMP                                                      ->52
   44    50    > > RETURN                                                   '-'
   45    51*       JMP                                                      ->52
   47    52*     > RETURN                                                   null

End of function convertecompetencia

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.31 ms | 1399 KiB | 13 Q