3v4l.org

run code in 500+ PHP versions simultaneously
<?php $temp = [ 0 => (object) [ "id" => "561", "lot_no" => "1", "weight" => "16230", "staple" => "3600", "mic" => "0", "strength" => "0", "trash" => "0", "color_grade" => "0", ], 1 => (object) [ "id" => "562", "lot_no" => "2", "weight" => "15523", "staple" => "3600", "mic" => "0", "strength" => "0", "trash" => "0", "color_grade" => "0", ], ]; $temp = array_column($temp, null, "id"); print_r($temp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l4pot
function name:  (null)
number of ops:  15
compiled vars:  !0 = $temp
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   CAST                                              8  ~1      <array>
          1        INIT_ARRAY                                           ~2      ~1, 0
          2        CAST                                              8  ~3      <array>
          3        ADD_ARRAY_ELEMENT                                    ~2      ~3, 1
    2     4        ASSIGN                                                       !0, ~2
   28     5        INIT_FCALL                                                   'array_column'
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     null
          8        SEND_VAL                                                     'id'
          9        DO_ICALL                                             $5      
         10        ASSIGN                                                       !0, $5
   29    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.62 ms | 2271 KiB | 15 Q