3v4l.org

run code in 200+ 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.2.5 - 7.2.0
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 2 in /in/35UZL on line 8
Output for 4.3.11 - 5.2.4
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 2 in /in/35UZL on line 8 Warning: preg_replace(): Compilation failed: nothing to repeat at offset 2 in /in/35UZL on line 8 Первый гол: {0} на {1} мин.
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 2 in /in/35UZL on line 8 Warning: Compilation failed: nothing to repeat at offset 2 in /in/35UZL on line 8 Первый гол: {0} на {1} мин.