3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_replace('/<h1[^>]*>([\s\S]*?)<\/h1[^>]*>/', '', 'Hello<h1>including this content</h1> There !!');

preferences:
50.28 ms | 402 KiB | 5 Q