3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $val = "bag\%el*f.art\%sala.d*m.on*key"; $val = str_replace('*' , '%', $val); $val = str_replace('.' , '_', $val); echo $val; ?>
Output for 4.3.0 - 7.1.0
bag\%el%f_art\%sala_d%m_on%key