3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "cao isso pala só temp que pala vai temp aparecer temp aqui cao"; $match=array(); $return = array_unique(explode(' ', $str)); if( array_key_exists( array('cao'), $return ) ){ echo 'Yes matched!'; }
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_key_exists(): The first argument should be either a string or an integer in /in/fBXHi on line 6
Output for hhvm-3.10.0 - 3.12.0
Warning: Array key should be either a string or an integer in /in/fBXHi on line 6
Output for 4.3.0 - 4.3.1
Warning: array_key_exists() [http://www.php.net/function.array-key-exists]: The first argument should be either a string or an integer in /in/fBXHi on line 6