3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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($first_names[0]); ?>
based on fAVH3
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
bills.debt_value