3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array(2,10,4,5,2,1); $array2 = array('A','B','C','D','E','F'); $array3 = array_combine($array2, $array1); arsort($array3); $skip = 0; $i = 0; $temp = null; foreach($array3 as $k => $v) { if($temp !== $v) {$i++; $i += $skip; $skip = 0;}else {$skip++;} $temp = $v; echo $k, ' Rank: ', $i, "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
B Rank: 1 D Rank: 2 C Rank: 3 A Rank: 4 E Rank: 4 F Rank: 6

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