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/CK10T
function name:  (null)
number of ops:  22
compiled vars:  !0 = $tree, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   34     1        ASSIGN                                                   !1, <array>
   36     2        INIT_FCALL                                               'array_walk_recursive'
   37     3        SEND_REF                                                 !0
   38     4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          5        BIND_LEXICAL                                             ~4, !1
   42     6        SEND_VAL                                                 ~4
   36     7        DO_ICALL                                                 
   44     8        INIT_FCALL                                               'var_export'
          9        INIT_FCALL                                               'array_count_values'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
   46    14        ECHO                                                     '%0A---%0A'
   61    15        INIT_FCALL                                               'var_export'
         16        INIT_FCALL                                               'recursivetypecount'
         17        SEND_VAR                                                 !0
         18        DO_FCALL                                      0  $8      
         19        SEND_VAR                                                 $8
         20        DO_ICALL                                                 
         21      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/CK10T
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $v, !1 = $k, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
   39     3        IS_IDENTICAL                                             !1, 'type'
          4      > JMPZ                                                     ~3, ->7
   40     5    >   ASSIGN_DIM                                               !2
          6        OP_DATA                                                  !0
   42     7    > > RETURN                                                   null

End of Dynamic Function 0

Function recursivetypecount:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 26
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 26
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 25
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 25
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 25
Branch analysis from position: 18
Branch analysis from position: 25
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/CK10T
function name:  recursiveTypeCount
number of ops:  29
compiled vars:  !0 = $array, !1 = $output, !2 = $item, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   47     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   48     2      > FE_RESET_R                                       $4      !0, ->26
          3    > > FE_FETCH_R                                       ~5      $4, !2, ->26
          4    >   ASSIGN                                                   !3, ~5
   49     5        FETCH_DIM_R                                      ~7      !2, 'type'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !1, ~7
          7        BOOL_NOT                                         ~9      ~8
          8      > JMPZ                                                     ~9, ->13
   50     9    >   FETCH_DIM_R                                      ~10     !2, 'type'
         10        ASSIGN_DIM                                               !1, ~10
         11        OP_DATA                                                  1
   49    12      > JMP                                                      ->16
   52    13    >   FETCH_DIM_R                                      ~12     !2, 'type'
         14        FETCH_DIM_RW                                     $13     !1, ~12
         15        PRE_INC                                                  $13
   54    16    >   FETCH_DIM_R                                      ~15     !2, 'children'
         17      > JMPZ                                                     ~15, ->25
   55    18    >   INIT_FCALL_BY_NAME                                       'recursiveTypeCount'
         19        CHECK_FUNC_ARG                                           
         20        FETCH_DIM_FUNC_ARG                               $16     !2, 'children'
         21        SEND_FUNC_ARG                                            $16
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0  $17     
         24        ASSIGN                                                   !1, $17
   48    25    > > JMP                                                      ->3
         26    >   FE_FREE                                                  $4
   58    27      > RETURN                                                   !1
   59    28*     > RETURN                                                   null

End of function recursivetypecount

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
258.53 ms | 976 KiB | 17 Q