3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.73 ms | 1394 KiB | 17 Q