3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'project_id' => 1, 'earnest_money_due' => [ 'value' => 1000.00, 'currency' => 'USD', ], ], [ 'project_id' => 2, 'earnest_money_due' => [ 'value' => 200.00, 'currency' => 'USD', ], ], [ 'project_id' => 3, 'earnest_money_due' => [ 'value' => 900.00, 'currency' => 'USD', ], ], ]; usort($array, fn($a, $b) => $a['earnest_money_due']['value'] <=> $b['earnest_money_due']['value']); var_export($array);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'project_id' => 2, 'earnest_money_due' => array ( 'value' => 200.0, 'currency' => 'USD', ), ), 1 => array ( 'project_id' => 3, 'earnest_money_due' => array ( 'value' => 900.0, 'currency' => 'USD', ), ), 2 => array ( 'project_id' => 1, 'earnest_money_due' => array ( 'value' => 1000.0, 'currency' => 'USD', ), ), )

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:
135.47 ms | 406 KiB | 5 Q