3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ 'chleb' => 'skiny/1.jpg', 'mienso' => 'skiny/2.jpg', 'mienso2' => 'skiny/2.jpg', 'mienso3' => 'skiny/2.jpg', 'mienso4' => 'skiny/2.jpg', 'mienso5' => 'skiny/2.jpg', 'Hasasdasd' => 'skiny/2.jpg', ]; $keys = array_keys($arr); Var_dump($keys);
based on lQ90K
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
array(7) { [0]=> string(5) "chleb" [1]=> string(6) "mienso" [2]=> string(7) "mienso2" [3]=> string(7) "mienso3" [4]=> string(7) "mienso4" [5]=> string(7) "mienso5" [6]=> string(9) "Hasasdasd" }