3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.07 ms | 1398 KiB | 19 Q