3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $h = "asdasd __asdasd__ frer __ desg df -+ br __"; preg_match_all('/_\_(.*?)_\_/i', $h, $r, PREG_PATTERN_ORDER); $rr = preg_replace('/_\_(.*?)_\_/i', '$$$', $h); print_r($rr);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
asdasd $$$ frer $$$