3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( 'fruit1' => 'apple', 'fruit2' => 'orange', 'fruit3' => 'grape', 'fruit4' => 'apple', 'fruit5' => 'apple'); echo key($array);
based on mFGOV
Output for 4.3.0 - 7.2.0
fruit1