3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array( '0' => Array ( 'code' => 'Custom discount', 'amount' => 3514.55, 'type' => 'fixed_amount' ), '1' => Array ( 'code' => 'MerOrder300', 'amount' => 400.00, 'type' => 'fixed_amount' ), '2' => Array ( 'code' => 'MerOrder400', 'amount' => 400.00, 'type' => 'fixed_amount' ), '3' => Array ( 'code' => 'MerOrder450', 'amount' => 450.00, 'type' => 'fixed_amount' ) ); $amountArr = array_column($arr, null, 'amount'); print_r($amountArr[max(array_keys($amountArr))]);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float 3514.55 to int loses precision in /in/d2WRf on line 32 Array ( [code] => Custom discount [amount] => 3514.55 [type] => fixed_amount )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
317.91 ms | 1514 KiB | 4 Q