3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $search="kiwi#phpinfo()"; $testString = $search."<img src='".$search.".png'>"; echo $testString; $text = preg_replace("/".$search."/", $testString, "kiwi"); echo $text; ?>
based on veEvC
Output for 5.3.18 - 7.2.0
kiwi#phpinfo()<img src='kiwi#phpinfo().png'>kiwi