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; var_dump(strtr($t, array( '{{number}}' => 54, '{{free}}' => 'free', '{{selected}}' => 'cur', )));
Output for 4.3.0 - 7.1.0
string(186) "<a class="a{{ number }} t h clickable {{ free }} {{ selected }}" data-info="{{ free }}" data-type="{{ type }}" title="{{ type }}" data-id={{ number }}">{{ number }}</a>"