3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $trasPhone = 1111;$disnumber=2222; var_dump(str_replace(array('{trasPhone}', '{disnumber}'), array($trasPhone, $disnumber), "abc{trasPhone}dddd{disnumber}adfas"));
Output for 4.3.0 - 7.1.0
string(20) "abc1111dddd2222adfas"