3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $replacements = array( "{0}" => "Динамо Киев", "{1}" => "87" ); $resultGoal = strtr($replacements, 'Первый гол: {0} на {1} мин.'); echo $resultGoal;
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Warning: strtr() expects parameter 1 to be string, array given in /in/6b0QN on line 8
Output for hhvm-3.10.0

Process exited with code 153.
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