3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c = 'test /*sdiznkngu ehfsdfhisdu fjaoaj* jrdgjnfsdgjuhd fihj/ fgölkmfdnn*/ idu//fhijksdm gkj*/ solala //gfkjlgn fdkughnsmdg fdhgsfd joar '; $c = preg_replace('!\/\*(.*?)\*\/!si','',$c); var_dump($c);
Output for 4.3.0 - 7.2.0
string(70) "test idu//fhijksdm gkj*/ solala //gfkjlgn fdkughnsmdg fdhgsfd joar "