3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dis = [45 => 422.555, 67=> 596.555, 72 => 322.55]; asort($dis); key($dis[0]);
based on oTLH1
Output for 7.0.0 - 7.3.0rc3
Notice: Undefined offset: 0 in /in/rJZEr on line 5 Warning: key() expects parameter 1 to be array, null given in /in/rJZEr on line 5
Output for hhvm-3.15.4
Warning: Invalid operand type was used: expecting an array in /in/rJZEr on line 5
Output for 5.6.0 - 5.6.30
Warning: key() expects parameter 1 to be array, null given in /in/rJZEr on line 5