3v4l.org

run code in 300+ PHP versions simultaneously
<?php class gogu { protected static function highlightToken($token) { $type = $token[self::TOKEN_TYPE]; $token = htmlentities($token[self::TOKEN_VALUE]); switch ($type) { case self::TOKEN_TYPE_BOUNDARY : return self::highlightBoundary($token); break; case self::TOKEN_TYPE_WORD : return self::highlightWord($token); break; case self::TOKEN_TYPE_COMMENT : case self::TOKEN_TYPE_BLOCK_COMMENT: return self::highlightComment($token); break; default: return $token; } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HdXkn
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > RETURN                                                   1

Class gogu:
Function highlighttoken:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 23
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 28
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 33
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 33
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HdXkn
function name:  highlightToken
number of ops:  40
compiled vars:  !0 = $token, !1 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        FETCH_CLASS_CONSTANT                             ~2      'TOKEN_TYPE'
          2        FETCH_DIM_R                                      ~3      !0, ~2
          3        ASSIGN                                                   !1, ~3
    6     4        INIT_FCALL                                               'htmlentities'
          5        FETCH_CLASS_CONSTANT                             ~5      'TOKEN_VALUE'
          6        FETCH_DIM_R                                      ~6      !0, ~5
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !0, $7
    9    10        FETCH_CLASS_CONSTANT                             ~10     'TOKEN_TYPE_BOUNDARY'
         11        IS_EQUAL                                                 !1, ~10
         12      > JMPNZ                                                    ~9, ->23
   10    13    >   FETCH_CLASS_CONSTANT                             ~11     'TOKEN_TYPE_WORD'
         14        IS_EQUAL                                                 !1, ~11
         15      > JMPNZ                                                    ~9, ->28
   11    16    >   FETCH_CLASS_CONSTANT                             ~12     'TOKEN_TYPE_COMMENT'
         17        IS_EQUAL                                                 !1, ~12
         18      > JMPNZ                                                    ~9, ->33
   12    19    >   FETCH_CLASS_CONSTANT                             ~13     'TOKEN_TYPE_BLOCK_COMMENT'
         20        IS_EQUAL                                                 !1, ~13
         21      > JMPNZ                                                    ~9, ->33
         22    > > JMP                                                      ->38
    9    23    >   INIT_STATIC_METHOD_CALL                                  'highlightBoundary'
         24        SEND_VAR_EX                                              !0
         25        DO_FCALL                                      0  $14     
         26      > RETURN                                                   $14
         27*       JMP                                                      ->39
   10    28    >   INIT_STATIC_METHOD_CALL                                  'highlightWord'
         29        SEND_VAR_EX                                              !0
         30        DO_FCALL                                      0  $15     
         31      > RETURN                                                   $15
         32*       JMP                                                      ->39
   12    33    >   INIT_STATIC_METHOD_CALL                                  'highlightComment'
         34        SEND_VAR_EX                                              !0
         35        DO_FCALL                                      0  $16     
         36      > RETURN                                                   $16
         37*       JMP                                                      ->39
   13    38    > > RETURN                                                   !0
   15    39*     > RETURN                                                   null

End of function highlighttoken

End of class gogu.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.4 ms | 1400 KiB | 15 Q