3v4l.org

run code in 300+ PHP versions simultaneously
<?php $trans = [ "-,.AjawbpfmnrhHxXsSqkgtTdD=/()[]<>{}'*#I1234567890&@", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ]; $list = [ 'wr' => 'A1', 'wr-qA' => 'A3', 'wr,w' => 'A4', 'wr-mw' => 'A2', 'wrs' => 'A6', 'wrD' => 'A8', 'wrS' => 'A7', 'wr.w' => 'A5', '=k' => 'A10', 'Dd' => 'A9' ]; uksort( $list, function ($a, $b) use ($trans) { return strtr($a, ...$trans) <=> strtr($b, ...$trans); } ); var_export($list);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'wr' => 'A1', 'wr-mw' => 'A2', 'wr-qA' => 'A3', 'wr,w' => 'A4', 'wr.w' => 'A5', 'wrs' => 'A6', 'wrS' => 'A7', 'wrD' => 'A8', 'Dd' => 'A9', '=k' => 'A10', )

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:
30.14 ms | 405 KiB | 5 Q