3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $debil = 'test.html'; var_dump( strtr( $debil, [ 'html' => 'htmlbackup', 'htm' => 'htmlbackup' ] ) );
based on 8arfo
Output for 5.6.0 - 7.3.0beta1
string(15) "test.htmlbackup"