3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $productName = "Bad Boy"; $_nonSupps = array("Tee", "Socks", "Vest", "Snapback", "Cap", "Top"); if (strpos($productName, $_nonSupps) == false) { echo "exists"; } else { echo "nope"; } ?>
Output for 5.3.1 - 7.1.0
Warning: strpos(): needle is not a string or an integer in /in/VYDph on line 4 exists
Output for 4.3.0 - 5.3.0
exists