3v4l.org

run code in 300+ PHP versions simultaneously
<?php $example = array( "ae1" => 1, "ae2" => 2, 0 => 3, 1 => 4, ); ksort($example); echo "Sort By Key:"; print_r($example); krsort($example); echo "Reverse Sort By Key"; print_r($example);
Output for git.master, git.master_jit, rfc.property-hooks
Sort By Key:Array ( [0] => 3 [1] => 4 [ae1] => 1 [ae2] => 2 ) Reverse Sort By KeyArray ( [ae2] => 2 [ae1] => 1 [1] => 4 [0] => 3 )

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:
60.85 ms | 401 KiB | 8 Q