3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Array representing a possible record set returned from a database $records = ['debtorName' => 'debtors.name', 'debtorNif' => 'debtors.nif', 'debtorType' => 'debtors.type', 'debtorState' => 'debtors.state', 'userName' => 'users.name', 'debtorContact' => 'debtor_contacts.value', 'debtValue' => [ 'fromDebtValue' => 'bills.debt_value', 'toDebtValue' => 'bills.debt_value'], 'paidValue' => [ 'fromPaidValue' => 'bill_campaign_payment.value', 'toPaidValue' => 'bill_campaign_payment.value']]; $first_names = array_column($records, 'fromDebtValue'); print_r(array_pop($first_names)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pZgLK
function name:  (null)
number of ops:  13
compiled vars:  !0 = $records, !1 = $first_names
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   16     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'fromDebtValue'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   17     6        INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'array_pop'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
   18    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.41 ms | 1398 KiB | 19 Q