3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array (11 => 14, 10 => 9, 12 => 7, 13 => 7, 14 => 4, 15 => 6); $maxs = array_keys($array, max($array)); var_dump($maxs);
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.11
array(1) { [0]=> int(11) }