3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = "/**\n * this is my shit\n */\nThis is the content! // this is another comment"; echo $d; echo "\n\n"; echo preg_replace('@/\*((.|\n)*?)\*/@',"",$d);

preferences:
41.25 ms | 402 KiB | 5 Q