3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dis = [45 => 422.555, 67=> 596.555, 72 => 322.55]; asort($dis); $arrs = reset($dis); echo key($arrs);
based on CT7AB
Output for 7.0.0 - 7.2.6
Warning: key() expects parameter 1 to be array, float given in /in/JHGin on line 6
Output for hhvm-3.15.4
Warning: Invalid operand type was used: expecting an array in /in/JHGin on line 6
Output for 5.6.0 - 5.6.30
Warning: key() expects parameter 1 to be array, double given in /in/JHGin on line 6