3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $replacements = array( "{0}" => "Динамо Киев", "{1}" => "87" ); $resultGoal = strtr($replacements, 'Первый гол: {0} на {1} мин.'); echo $resultGoal;
Output for 5.3.0 - 7.1.7
Warning: strtr() expects parameter 1 to be string, array given in /in/6b0QN on line 8
Output for 5.2.5 - 5.2.17
Warning: strtr(): The second argument is not an array in /in/6b0QN on line 8
Output for 4.3.2 - 5.2.4
Warning: strtr(): The second argument is not an array. in /in/6b0QN on line 8
Output for 4.3.0 - 4.3.1
Warning: strtr() [http://www.php.net/function.strtr]: The second argument is not an array. in /in/6b0QN on line 8