3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $id = '01110413'; $ltr = array('00' => 'A', '01' => 'B', '03' => 'C', '04' => 'D'); foreach ($ltr as $search=>$replace) { $id = str_replace($search, $replace, $id); } var_dump($id);
Output for 4.3.0 - 7.1.0
string(6) "B11D13"