3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $query = "Google"; $queryReplace = "<span class=\"found\">".$query."</span>"; $descriptionContent = "Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for."; $foundQuery = stristr($descriptionContent, $query); $queryInDescription = str_replace($query, $queryReplace, $foundQuery);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0