3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = ["facebook_like" => 100, "total" => 12, "vote" => 40, "page_view" => 123, "twitter_tweet" => 112, "comment" => 199]; $order = ["total", "page_view", "vote", "facebook_like", "twitter_tweet", "comment"]; array_multisort($a1, array_flip($order)); var_dump($a1);
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { ["total"]=> int(12) ["vote"]=> int(40) ["facebook_like"]=> int(100) ["twitter_tweet"]=> int(112) ["page_view"]=> int(123) ["comment"]=> int(199) }

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