3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(0 => 100, "color" => "red"); $keys = array_keys($array); print_r($keys[1]); echo $dd = count($key); ?>
based on GDJDM
Output for 7.2.0
color Notice: Undefined variable: key in /in/X3qsq on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/X3qsq on line 6 0
Output for 5.0.4 - 7.1.10
color Notice: Undefined variable: key in /in/X3qsq on line 6 0
Output for 4.3.0 - 5.0.3
color Notice: Undefined variable: key in /in/X3qsq on line 6 0