3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(15, 4, 7, 12, 22,55, 1); $maxs = array_keys($arr , max($arr )); var_dump($maxs);
Output for 4.3.0 - 7.1.0
array(1) { [0]=> int(5) }