3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array('0' => 'John', '1' => 'George', '2' => 'James', '3' => 'Harry'); $arr2 = array('0' => '12', '1' => '8', '2' => '34', '3' => '23'); array_multisort($arr2,SORT_DESC,$arr1); echo '<pre>'; print_r($arr2); print_r($arr1); echo '</pre>';
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => 34 [1] => 23 [2] => 12 [3] => 8 ) Array ( [0] => James [1] => Harry [2] => John [3] => George ) </pre>

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