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) = true) { echo "exists"; } else { echo "nope"; } ?>
Output for 5.3.0 - 5.4.30
Fatal error: Can't use function return value in write context in /in/9qJWW on line 4
Process exited with code 255.