3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( [ "product_id" => "1138", "product_image" => "/resources/medias/shop/products/shop-6500720--1.png", "product_sku" => "6500722" ], [ "product_id" => "1144", "product_image" => "/resources/medias/shop/products/shop-6501041--1.png", "product_sku" => "6501046" ], [ "product_id" => "113", "product_image" => "/resources/medias/shop/products/shop-6294909--1.png", "product_sku" => "6294915" ] ); $new = array_column($array, "product_id", "product_sku"); Var_dump($new);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UDGiO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $new
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
   22     1        INIT_FCALL                                                   'array_column'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     'product_id'
          4        SEND_VAL                                                     'product_sku'
          5        DO_ICALL                                             $3      
          6        ASSIGN                                                       !1, $3
   23     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.09 ms | 3358 KiB | 15 Q