3v4l.org

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