3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array(); $values[0] = 5; $values[1] = 12; $values[2] = 19; $values[3] = 9; $ordered_values = $values; rsort($ordered_values); foreach ($values as $key => $value) { foreach ($ordered_values as $ordered_key => $ordered_value) { if ($value === $ordered_value) { $key = $ordered_key; break; } } echo $value . '- Rank: ' . ((int) $key + 1) . '\n'; }
Output for git.master, git.master_jit, rfc.property-hooks
5- Rank: 4\n12- Rank: 2\n19- Rank: 1\n9- Rank: 3\n

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