3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
233.8 ms | 2115 KiB | 15 Q