3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a["100"] = true; echo "\$a is an associative map: "; var_export($a); $keys = array_keys($a); echo "It has these keys: "; var_export($keys); var_dump( is_string($keys[0]) );
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$a is an associative map: array ( 100 => true, )It has these keys: array ( 0 => 100, )bool(false)