3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'code' => 'Custom discount', 'amount' => 3514.55, 'type' => 'fixed_amount' ], [ 'code' => 'MerOrder300', 'amount' => 400.00, 'type' => 'fixed_amount' ], [ 'code' => 'MerOrder400', 'amount' => 3514.55, 'type' => 'fixed_amount' ], [ 'code' => 'MerOrder450', 'amount' => 450.00, 'type' => 'fixed_amount' ] ]; $max = max( array_column($array, 'amount') ); var_export( array_filter( $array, function($subarray) use ($max) { return $subarray['amount'] == $max; } ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'code' => 'Custom discount', 'amount' => 3514.55, 'type' => 'fixed_amount', ), 2 => array ( 'code' => 'MerOrder400', '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:
109.88 ms | 1526 KiB | 4 Q