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} мин.');
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 2 in /in/LaMdZ on line 8
Output for hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: nothing to repeat at offset 2 in /in/LaMdZ on line 8
Output for 4.3.11 - 5.2.4
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 2 in /in/LaMdZ on line 8 Warning: preg_replace(): No ending delimiter '/' found in /in/LaMdZ on line 8
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 2 in /in/LaMdZ on line 8 Warning: No ending delimiter '/' found in /in/LaMdZ on line 8