3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "2" => "abc", "3" => "aBc", "65" => "Abc", "ab" => "abc12", "lkT" => 2, 45 => "test", "This" => "is this", false => "abc012", " " => 22.22, ]; print_r($array); uasort($array, function ($x, $y){ return $x >= $y; }); print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [2] => abc [3] => aBc [65] => Abc [ab] => abc12 [lkT] => 2 [45] => test [This] => is this [0] => abc012 [ ] => 22.22 ) Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /in/ia3rq on line 15 Array ( [lkT] => 2 [ ] => 22.22 [65] => Abc [3] => aBc [2] => abc [0] => abc012 [ab] => abc12 [This] => is this [45] => test )

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