3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bestsellers = [ (object) [ 'product_id' => 178, 'order_item_qty' => 9], (object) [ 'product_id' => 233, 'order_item_qty' => 4], (object) [ 'product_id' => 179, 'order_item_qty' => 1], ]; $ids = array_column($bestsellers, 'product_id'); var_dump($ids);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vXXa2
function name:  (null)
number of ops:  16
compiled vars:  !0 = $bestsellers, !1 = $ids
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~2      <array>
          1        INIT_ARRAY                                       ~3      ~2
    5     2        CAST                                          8  ~4      <array>
          3        ADD_ARRAY_ELEMENT                                ~3      ~4
    6     4        CAST                                          8  ~5      <array>
          5        ADD_ARRAY_ELEMENT                                ~3      ~5
    3     6        ASSIGN                                                   !0, ~3
    9     7        INIT_FCALL                                               'array_column'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'product_id'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
   11    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.59 ms | 1394 KiB | 17 Q