3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text_string = '+TEST+'; $text = explode("+", $text_string); $text = $text[1]; $replaced_text = str_replace("+$text+", "<em>$text</em>", $text_string); echo $replaced_text; // output: <em>TEST</em> ?>
based on IGF0J
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<em>TEST</em>
Output for hhvm-3.10.0

Process exited with code 153.