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/mjgQd on line 4 nope
Output for 4.3.0 - 5.3.0, hhvm-3.12.0
nope
Output for hhvm-3.10.0

Process exited with code 153.