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));
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.9