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 strstr($a3,$a2);
based on EM1D9
Output for 5.3.1 - 7.2.0
<h1>title</h1> AAAAAA <hr> BBBBBBB Warning: strstr(): needle is not a string or an integer in /in/XGe1V on line 16
Output for 4.3.0 - 5.3.0
<h1>title</h1> AAAAAA <hr> BBBBBBB