3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $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."; $boldQuery = str_replace($query, $queryReplace, $descriptionContent); $queryInDescription = stristr($boldQuery, $query); echo $queryInDescription;
Output for 5.5.0 - 7.1.0
Notice: Undefined variable: query in /in/i6cPC on line 2 Notice: Undefined variable: query in /in/i6cPC on line 4 Notice: Undefined variable: query in /in/i6cPC on line 5
Output for 4.3.0 - 5.4.45