3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['KRA_category'=>'Business'], ['KRA_category'=>'Business'], ['KRA_category'=>'People'], ['KRA_category'=>'Business'], ['KRA_category'=>'Business'], ['KRA_category'=>'Business'] ]; var_export( array_count_values( array_diff_key( array_column($array, 'KRA_category'), array_unique($array, SORT_REGULAR) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rNjUF
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'var_export'
   12     2        INIT_FCALL                                               'array_count_values'
   13     3        INIT_FCALL                                               'array_diff_key'
   14     4        INIT_FCALL                                               'array_column'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'KRA_category'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
   15     9        INIT_FCALL                                               'array_unique'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                                 
   18    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.1 ms | 1394 KiB | 23 Q