3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Warning: strpos(): needle is not a string or an integer in /in/6fSj1 on line 4 exists
Output for 4.3.0 - 5.3.0, hhvm-3.12.0
exists
Output for hhvm-3.10.0

Process exited with code 153.