3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['1' => 'value']; $keys = array_keys($a); var_dump($a); var_dump($keys);
based on ddArv
Output for 5.6.0 - 7.1.7
array(1) { [1]=> string(5) "value" } array(1) { [0]=> int(1) }