3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_lines="a senha eh senha:123132321"; $output = preg_replace("/(:\w+)/", "macaco", $input_lines); echo $output;

preferences:
27.38 ms | 458 KiB | 5 Q