3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 'foo' => 'bar', 'baz' => 'foobar' ); var_dump(array_key_exists(array('foo', 'baz')), $array);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/OTHjp on line 8 NULL array(2) { ["foo"]=> string(3) "bar" ["baz"]=> string(6) "foobar" }
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for array_key_exists() in /in/OTHjp on line 8 NULL array(2) { ["foo"]=> string(3) "bar" ["baz"]=> string(6) "foobar" }