3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scores = array( array(1, "allan", 90), array(2, "allan", 85), array(3, "mark", 100), array(4, "jason", 88), array(5, "allan", 92), array(6, "mark", 77), array(7, "mark", 88), array(8, "jason", 90) ); foreach($scores as $e) { if (!isset($res[$e[1]])) $res[$e[1]] = 0; $res[$e[1]] += $e[2]; } print_r(array_keys($res, max($res)));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => allan )

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