3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['user' => 'Name 1', 'group' => 1], ['user' => 'Name 2', 'group' => 1], ['user' => 'Name 3', 'group' => 2], ['user' => 'Name 4', 'group' => 2], ['user' => 'Name 5', 'group' => 3], ]; var_export( array_count_values(array_column($array, 'group')) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qflh2
function name:  (null)
number of ops:  12
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'
          3        INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'group'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
   11    10        DO_ICALL                                                 
   13    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.02 ms | 998 KiB | 16 Q