3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serviceNames = array( 0 => array( 'language' => 'en', 'value' => 'something', 'type' => 'name', ), 1 => array( 'language' => 'fi', 'value' => 'jotain', 'type' => 'name', ), 2 => array( 'language' => 'sv', 'value' => 'nĂ¥gonting', 'type' => 'name', ), ); $serviceNames = array_column($serviceNames, Null, "language"); echo $serviceNames["fi"]["value"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ssGQa
function name:  (null)
number of ops:  11
compiled vars:  !0 = $serviceNames
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 null
          4        SEND_VAL                                                 'language'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   23     7        FETCH_DIM_R                                      ~4      !0, 'fi'
          8        FETCH_DIM_R                                      ~5      ~4, 'value'
          9        ECHO                                                     ~5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.79 ms | 1009 KiB | 14 Q