3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aRZtN
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_FCALL                                               'highlight'
          1        SEND_VAL                                                 '1234'
          2        SEND_VAL                                                 '12%2C341%2C234.00'
          3        DO_FCALL                                      0  $0      
          4        CONCAT                                           ~1      $0, '%0A'
          5        ECHO                                                     ~1
   29     6      > RETURN                                                   1

Function highlight:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 61
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 61
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 55
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 54
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 54
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 22
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 60
Branch analysis from position: 58
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 60
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 61
filename:       /in/aRZtN
function name:  highlight
number of ops:  66
compiled vars:  !0 = $search, !1 = $number, !2 = $searchBegin, !3 = $searchIndex, !4 = $character, !5 = $numberIndex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ASSIGN                                                   !2, null
    6     3        ASSIGN                                                   !3, 0
    7     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 <array>
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !0, $8
    8    10        INIT_FCALL                                               'str_split'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $10     
         13      > FE_RESET_R                                       $11     $10, ->61
         14    > > FE_FETCH_R                                       ~12     $11, !4, ->61
         15    >   ASSIGN                                                   !5, ~12
    9    16        FETCH_DIM_R                                      ~14     !0, !3
         17        IS_EQUAL                                                 !4, ~14
         18      > JMPZ                                                     ~15, ->55
   10    19    >   TYPE_CHECK                                    2          !2
         20      > JMPZ                                                     ~16, ->22
   11    21    >   ASSIGN                                                   !2, !5
   13    22    >   PRE_INC                                                  !3
   14    23        STRLEN                                           ~19     !0
         24        IS_EQUAL                                                 !3, ~19
         25      > JMPZ                                                     ~20, ->54
   15    26    >   INIT_FCALL                                               'substr'
         27        SEND_VAR                                                 !1
         28        SEND_VAL                                                 0
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                         $21     
   16    31        CONCAT                                           ~22     $21, '%3Cspan+style%3D%22background%3A+yellow%22%3E'
   17    32        INIT_FCALL                                               'substr'
         33        SEND_VAR                                                 !1
         34        SEND_VAR                                                 !2
         35        SUB                                              ~23     !5, !2
         36        ADD                                              ~24     ~23, 1
         37        SEND_VAL                                                 ~24
         38        DO_ICALL                                         $25     
         39        CONCAT                                           ~26     ~22, $25
   18    40        CONCAT                                           ~27     ~26, '%3C%2Fspan%3E'
   19    41        INIT_FCALL_BY_NAME                                       'highlight'
         42        SEND_VAR_EX                                              !0
         43        INIT_FCALL                                               'substr'
         44        SEND_VAR                                                 !1
         45        ADD                                              ~28     !5, 1
         46        SEND_VAL                                                 ~28
         47        DO_ICALL                                         $29     
         48        SEND_VAR_NO_REF_EX                                       $29
         49        DO_FCALL                                      0  $30     
         50        CONCAT                                           ~31     ~27, $30
         51        VERIFY_RETURN_TYPE                                       ~31
         52        FE_FREE                                                  $11
         53      > RETURN                                                   ~31
    9    54    > > JMP                                                      ->60
   21    55    >   IN_ARRAY                                         ~32     !4, <array>
         56        BOOL_NOT                                         ~33     ~32
         57      > JMPZ                                                     ~33, ->60
   22    58    >   ASSIGN                                                   !2, null
   23    59        ASSIGN                                                   !3, 0
    8    60    > > JMP                                                      ->14
         61    >   FE_FREE                                                  $11
   26    62        VERIFY_RETURN_TYPE                                       !1
         63      > RETURN                                                   !1
   27    64*       VERIFY_RETURN_TYPE                                       
         65*     > RETURN                                                   null

End of function highlight

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.74 ms | 976 KiB | 17 Q