3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ 1 => ['A' => '1', 'B' => 1, 'C' => 'TEMU3076746'], 2 => ['A' => '2', 'B' => 1.3, 'C' => 'FCIU5412720'], 3 => ['A' => '3', 'B' => 1.5, 'C' => 'TEMU3076746'], 4 => ['A' => '4', 'B' => 1.8, 'C' => 'TEMU3076746'], 5 => ['A' => '5', 'B' => 2, 'C' => 'FCIU5412720'] ]; var_export(array_column($arr, 'B', 'B')); echo "\n---\n"; var_export(array_count_values(array_column($arr, 'B'))); echo "\n---\n"; var_export(array_unique(array_column($arr, 'B')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6ae1o
function name:  (null)
number of ops:  32
compiled vars:  !0 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   11     1        INIT_FCALL                                                   'var_export'
          2        INIT_FCALL                                                   'array_column'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     'B'
          5        SEND_VAL                                                     'B'
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
   13     9        ECHO                                                         '%0A---%0A'
   15    10        INIT_FCALL                                                   'var_export'
         11        INIT_FCALL                                                   'array_count_values'
         12        INIT_FCALL                                                   'array_column'
         13        SEND_VAR                                                     !0
         14        SEND_VAL                                                     'B'
         15        DO_ICALL                                             $4      
         16        SEND_VAR                                                     $4
         17        DO_ICALL                                             $5      
         18        SEND_VAR                                                     $5
         19        DO_ICALL                                                     
   17    20        ECHO                                                         '%0A---%0A'
   19    21        INIT_FCALL                                                   'var_export'
         22        INIT_FCALL                                                   'array_unique'
         23        INIT_FCALL                                                   'array_column'
         24        SEND_VAR                                                     !0
         25        SEND_VAL                                                     'B'
         26        DO_ICALL                                             $7      
         27        SEND_VAR                                                     $7
         28        DO_ICALL                                             $8      
         29        SEND_VAR                                                     $8
         30        DO_ICALL                                                     
         31      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.3 ms | 2124 KiB | 17 Q