3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "0" => [ "UserID" => "1", "EmailAddress" => "user5@gmail.com", "TransID" => "fjhf8f7848", "email" => "asdashdk@gmail.com" ], "1" => [ "UserID" => "1", "EmailAddress" => "johndoe@gmail.com", "TransID" => "dfsdhsdu78", "email" => "rrrrrrr@gmail.com" ], ]; foreach($arr as &$item){ uksort($item, function ($a, $b) { $a = strtolower($a); $b = strtolower($b); return strcmp($a, $b); }); } print_r($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [email] => asdashdk@gmail.com [EmailAddress] => user5@gmail.com [TransID] => fjhf8f7848 [UserID] => 1 ) [1] => Array ( [email] => rrrrrrr@gmail.com [EmailAddress] => johndoe@gmail.com [TransID] => dfsdhsdu78 [UserID] => 1 ) )

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