3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('test'); echo array_key_exists('test', $a['children']);
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: children in /in/e1chX on line 5 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/e1chX on line 5
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: children in /in/e1chX on line 5 Warning: Invalid operand type was used: array_key_exists expects an array or an object; false returned. in /in/e1chX on line 5
Output for 5.3.0 - 5.4.45
Warning: array_key_exists() expects parameter 2 to be array, null given in /in/e1chX on line 5
Output for 5.2.3 - 5.2.17
Warning: array_key_exists(): The second argument should be either an array or an object in /in/e1chX on line 5
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 second argument should be either an array or an object in <b>/in/e1chX</b> on line <b>5</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: array_key_exists(): The second argument should be either an array or an object in <b>/in/e1chX</b> on line <b>5</b><br />
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 second argument should be either an array or an object in <b>/in/e1chX</b> on line <b>5</b><br />