3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $search = htmlentities('testapple'); if (strpos($search, 'apple') !== false){ echo '\e[31mRED TEXT\e[m'; echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "apple"); }else echo "ELSE"; ?>
based on OETh2