3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $key = "asdf"; $value = array(); if ((is_array($value) && in_array(strval($key), $value)) || (strval($key) == strval($value))) { echo "true"; } else { echo "false"; }
based on GWqB3
Output for 4.3.0 - 4.3.11, 5.4.0 - 7.2.0
Notice: Array to string conversion in /in/tI18I on line 6 false
Output for 4.4.0 - 5.3.29
false