3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ((is_array($value) && in_array(strval($key), $value)) || (is_string($value) && strval($key) == strval($value))) { echo "true"; } else { echo "false"; }
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: value in /in/LTv6N on line 3 Notice: Undefined variable: value in /in/LTv6N on line 3 false
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: value in /in/LTv6N on line 3 Notice: Undefined variable: value in /in/LTv6N on line 3 false