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.2.3 - 7.1.0
Warning: array_key_exists(): The first argument should be either a string or an integer in /in/tjNrl on line 8 bool(false)
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The first argument should be either a string or an integer in <b>/in/tjNrl</b> on line <b>8</b><br /> bool(false)
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: array_key_exists(): The first argument should be either a string or an integer in <b>/in/tjNrl</b> on line <b>8</b><br /> bool(false)
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: array_key_exists() [<a href='http://www.php.net/function.array-key-exists'>function.array-key-exists</a>]: The first argument should be either a string or an integer in <b>/in/tjNrl</b> on line <b>8</b><br /> bool(false)