3v4l.org

run code in 300+ PHP versions simultaneously
<?php $priceTableData = array( array('productId'=>1,'price'=>50,'discount'=>12), array('productId'=>2,'price'=>22,'discount'=>2), array('productId'=>3,'price'=>7,'discount'=>0), array('productId'=>4,'price'=>9,'discount'=>0), array('productId'=>5,'price'=>35,'discount'=>7), ); $discounts= array_column($priceTableData , 'discount'); print_r($discounts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HSDeb
function name:  (null)
number of ops:  10
compiled vars:  !0 = $priceTableData, !1 = $discounts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'discount'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   14     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.87 ms | 1394 KiB | 17 Q