3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array("28000000000000003" => 'ABC',"28000000000000001" => 'PQR'); var_dump(in_array("28000000000000003", array_keys($data), true),array_keys($data)); var_dump(in_array("28000000000000003", array_keys($data)), array_keys($data)); var_dump(in_array("28000000000000003", array("28000000000000003","28000000000000001"), true)); var_dump(in_array("28000000000000003", array("28000000000000003","28000000000000001"))); ?>
Output for 4.3.0 - 7.1.0
bool(false) array(2) { [0]=> int(28000000000000003) [1]=> int(28000000000000001) } bool(true) array(2) { [0]=> int(28000000000000003) [1]=> int(28000000000000001) } bool(true) bool(true)