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/jZL7v
function name:  (null)
number of ops:  8
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   47     1        INIT_FCALL                                               'collect_same_id'
          2        SEND_REF                                                 !0
          3        DO_FCALL                                      0          
   49     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function collect_same_id:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 24
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 24
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/jZL7v
function name:  collect_same_id
number of ops:  29
compiled vars:  !0 = $data, !1 = $tmp, !2 = $i, !3 = $rec, !4 = $ind
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   RECV                                             !0      
   32     1        ASSIGN                                                   !1, <array>
   33     2        ASSIGN                                                   !2, 0
   34     3      > FE_RESET_R                                       $7      !0, ->24
          4    > > FE_FETCH_R                                       ~8      $7, !3, ->24
          5    >   ASSIGN                                                   !4, ~8
   36     6        FETCH_DIM_R                                      ~10     !3, 'id'
          7        ARRAY_KEY_EXISTS                                 ~11     ~10, !1
          8        BOOL_NOT                                         ~12     ~11
          9      > JMPZ                                                     ~12, ->15
   37    10    >   FETCH_DIM_R                                      ~13     !3, 'id'
         11        ASSIGN_DIM                                               !1, ~13
         12        OP_DATA                                                  !2
   38    13        PRE_INC                                                  !2
   36    14      > JMP                                                      ->23
   40    15    >   FETCH_DIM_R                                      ~16     !3, 'id'
         16        FETCH_DIM_R                                      ~17     !1, ~16
         17        FETCH_DIM_R                                      ~20     !3, 'drug'
         18        CONCAT                                           ~21     '%2C+', ~20
         19        FETCH_DIM_RW                                     $18     !0, ~17
         20        ASSIGN_DIM_OP                .=               8          $18, 'drug'
         21        OP_DATA                                                  ~21
   41    22        UNSET_DIM                                                !0, !4
   34    23    > > JMP                                                      ->4
         24    >   FE_FREE                                                  $7
   44    25        INIT_FCALL                                               'sort'
         26        SEND_REF                                                 !0
         27        DO_ICALL                                                 
   45    28      > RETURN                                                   null

End of function collect_same_id

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.33 ms | 975 KiB | 16 Q