3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $paragraph = "<p>With natural, refreshing scents and stimulating formulas, here you’ll find just what you need to experience a new level of comfort and luxury</p><p>With natural, refreshing scents and stimulating formulas, here you’ll find just what you need to experience a new level of comfort and luxury</p><p>With natural, refreshing scents and stimulating formulas, here you’ll find just what you need to experience a new level of comfort and luxury</p>"; var_dump(str_replace('</p>', '<em>EMEMEMEMEMEM</em></p>', $paragraph));
based on Ca8eN
Output for 4.3.0 - 7.2.0
string(513) "<p>With natural, refreshing scents and stimulating formulas, here you’ll find just what you need to experience a new level of comfort and luxury<em>EMEMEMEMEMEM</em></p><p>With natural, refreshing scents and stimulating formulas, here you’ll find just what you need to experience a new level of comfort and luxury<em>EMEMEMEMEMEM</em></p><p>With natural, refreshing scents and stimulating formulas, here you’ll find just what you need to experience a new level of comfort and luxury<em>EMEMEMEMEMEM</em></p>"