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_BACKTICK_QUOTE : return self::highlightBacktickQuote($token); break; case self::TOKEN_TYPE_QUOTE : return self::highlightQuote($token); break; case self::TOKEN_TYPE_RESERVED : return self::highlightReservedWord($token); break; case self::TOKEN_TYPE_SPECIAL_RESERVED : return self::highlightReservedWord($token); break; case self::TOKEN_TYPE_NUMBER : return self::highlightNumber($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/23sZd
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     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 = 38
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 43
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 48
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 53
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 58
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 63
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 68
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 73
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 73
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 73
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 73
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 53
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: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/23sZd
function name:  highlightToken
number of ops:  80
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, ->38
   10    13    >   FETCH_CLASS_CONSTANT                             ~11     'TOKEN_TYPE_WORD'
         14        IS_EQUAL                                                 !1, ~11
         15      > JMPNZ                                                    ~9, ->43
   11    16    >   FETCH_CLASS_CONSTANT                             ~12     'TOKEN_TYPE_BACKTICK_QUOTE'
         17        IS_EQUAL                                                 !1, ~12
         18      > JMPNZ                                                    ~9, ->48
   12    19    >   FETCH_CLASS_CONSTANT                             ~13     'TOKEN_TYPE_QUOTE'
         20        IS_EQUAL                                                 !1, ~13
         21      > JMPNZ                                                    ~9, ->53
   13    22    >   FETCH_CLASS_CONSTANT                             ~14     'TOKEN_TYPE_RESERVED'
         23        IS_EQUAL                                                 !1, ~14
         24      > JMPNZ                                                    ~9, ->58
   14    25    >   FETCH_CLASS_CONSTANT                             ~15     'TOKEN_TYPE_SPECIAL_RESERVED'
         26        IS_EQUAL                                                 !1, ~15
         27      > JMPNZ                                                    ~9, ->63
   15    28    >   FETCH_CLASS_CONSTANT                             ~16     'TOKEN_TYPE_NUMBER'
         29        IS_EQUAL                                                 !1, ~16
         30      > JMPNZ                                                    ~9, ->68
   16    31    >   FETCH_CLASS_CONSTANT                             ~17     'TOKEN_TYPE_COMMENT'
         32        IS_EQUAL                                                 !1, ~17
         33      > JMPNZ                                                    ~9, ->73
   17    34    >   FETCH_CLASS_CONSTANT                             ~18     'TOKEN_TYPE_BLOCK_COMMENT'
         35        IS_EQUAL                                                 !1, ~18
         36      > JMPNZ                                                    ~9, ->73
         37    > > JMP                                                      ->78
    9    38    >   INIT_STATIC_METHOD_CALL                                  'highlightBoundary'
         39        SEND_VAR_EX                                              !0
         40        DO_FCALL                                      0  $19     
         41      > RETURN                                                   $19
         42*       JMP                                                      ->79
   10    43    >   INIT_STATIC_METHOD_CALL                                  'highlightWord'
         44        SEND_VAR_EX                                              !0
         45        DO_FCALL                                      0  $20     
         46      > RETURN                                                   $20
         47*       JMP                                                      ->79
   11    48    >   INIT_STATIC_METHOD_CALL                                  'highlightBacktickQuote'
         49        SEND_VAR_EX                                              !0
         50        DO_FCALL                                      0  $21     
         51      > RETURN                                                   $21
         52*       JMP                                                      ->79
   12    53    >   INIT_STATIC_METHOD_CALL                                  'highlightQuote'
         54        SEND_VAR_EX                                              !0
         55        DO_FCALL                                      0  $22     
         56      > RETURN                                                   $22
         57*       JMP                                                      ->79
   13    58    >   INIT_STATIC_METHOD_CALL                                  'highlightReservedWord'
         59        SEND_VAR_EX                                              !0
         60        DO_FCALL                                      0  $23     
         61      > RETURN                                                   $23
         62*       JMP                                                      ->79
   14    63    >   INIT_STATIC_METHOD_CALL                                  'highlightReservedWord'
         64        SEND_VAR_EX                                              !0
         65        DO_FCALL                                      0  $24     
         66      > RETURN                                                   $24
         67*       JMP                                                      ->79
   15    68    >   INIT_STATIC_METHOD_CALL                                  'highlightNumber'
         69        SEND_VAR_EX                                              !0
         70        DO_FCALL                                      0  $25     
         71      > RETURN                                                   $25
         72*       JMP                                                      ->79
   17    73    >   INIT_STATIC_METHOD_CALL                                  'highlightComment'
         74        SEND_VAR_EX                                              !0
         75        DO_FCALL                                      0  $26     
         76      > RETURN                                                   $26
         77*       JMP                                                      ->79
   18    78    > > RETURN                                                   !0
   20    79*     > RETURN                                                   null

End of function highlighttoken

End of class gogu.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.53 ms | 1396 KiB | 15 Q