3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h = "asdasd __asdasd__ frer __ desg df -+ br __"; preg_match_all('/_\_(.*?)_\_/i', $h, $r); $rr = preg_replace('/_\_(.*?)_\_/i', '$$$', $h); print_r($r);

preferences:
40.01 ms | 402 KiB | 5 Q