3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar[1] = array("game","scissors","rock","paper"); $ar[2] = array("D", "B", "A", "C"); $ar[3] = array("four","two","one","three"); $supar = array(&$ar[2],&$ar[1],&$ar[3]); //array_multisort($ar[2],$ar[1],$ar[3]); call_user_func_array('array_multisort', $supar); for ($j=0;$j<=3;$j++) { for ($i=1;$i<=3;$i++) { echo $ar[$i][$j]." "; } echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
rock A one scissors B two paper C three game D four

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.45 ms | 405 KiB | 5 Q