3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a2 = array( '{DOMEA}' => 'AAAAAA', '{DOMEB}' => 'BBBBBBB', ); $a3 = ' <h1>title</h1> {DOMEA} <hr> {DOMEB} '; //echo str_replace(array_keys($a2), array_values($a2), $a3); echo strtr($a3,$a2);
based on nWiqD
Output for 4.3.0 - 7.2.0
<h1>title</h1> AAAAAA <hr> BBBBBBB