3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $key = "asdf"; $value = array("asdf"); if ((is_array($value) && in_array(strval($key), $value)) || (is_string($value) && strval($key) == strval($value))) { echo "true"; } else { echo "false"; }
based on LTv6N
Output for 4.3.0 - 7.2.0
true