3v4l.org

run code in 150+ 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>"; var_dump(preg_replace('/<\/p>$/g', '<em>EMEMEMEMEMEM</em></p>', $paragraph));
based on WlBPW
Output for 4.3.11 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Unknown modifier 'g' in /in/se7kD on line 5 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: Unknown modifier 'g': [/<\/p>$/g] in /in/se7kD on line 5 NULL
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'g' in /in/se7kD on line 5 NULL