3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $patterns[0] = "\{0}\"; $patterns[1] = "\{1}\"; $replacements[0] = 'Динамо Киев'; $replacements[1] = '87'; $resultGoal = preg_replace($patterns, $replacements, 'Первый гол: {0} на {1} мин.'); echo $resultGoal;
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in /in/8330R on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_NS_SEPARATOR in /in/8330R on line 3
Process exited with code 255.