3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $params = array('a', 'b', 'c'); $patterns = array_fill(0, count($params), '#\?#'); $replacements = $params; var_dump(preg_replace($patterns, $replacements, 'bla ? bla ? bla ? blu', 1));
based on nhpu2
Output for 4.3.0 - 7.2.0
string(21) "bla a bla b bla c blu"