3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $status = 'i love watching tv on my brand new apple mac'; $productFile = "apple sony dyson mcdonalds ipod"; if (strpos($status,$productFile) !== false) { echo 'the status contains a product'; } else{ echo 'The status doesnt contain a product'; }
Output for 4.3.0 - 7.1.0
The status doesnt contain a product