3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = <<<EOT <a class="a{{number}} t h clickable {{free}} {{selected}}" data-info="{{free}}" data-type="{{type}}" title="{{type}}" data-id={{number}}">{{number}}</a> EOT; $s = array( '{{number}}' => 54, '{{free}}' => 'free', '{{selected}}' => 'cur', '{{type}}' => 1020 ); var_dump(strtr($t, $s));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(121) "<a class="a54 t h clickable free cur" data-info="free" data-type="1020" title="1020" data-id=54">54</a>"