3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Какой-то <!-- текст <a href= --> eeeeeeeee <!-- \"http://site.ru/page.html\" target=\"_blank\">Text</a>. --> Продолжение текста"; echo preg_replace("/\<\!\-\-[^]*\-\-\>/","", $text);

preferences:
43.46 ms | 402 KiB | 5 Q