3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = 'sdfsf dfg <h2 dgdfg>dxfdgdfg </h2> dfdsgdfg > sdf<>'; $body = preg_replace("/<h2.*?<\/h2>/","", $body); var_dump($body);

preferences:
48.01 ms | 402 KiB | 5 Q