3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(count(array_keys(array('foo', 'bar', 'foo'), 'foo', true)));
based on oJBnZ
Output for 5.0.0 - 7.1.0
int(2)
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for array_keys() in /in/j4pEY on line 3 int(0)