3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = 'Fooo <!-- NOCACHE_START DEV_PROFILING --> <div class="box box-bdr pam mtm" id="dev_ProfilingButton"> <div class="h3">Profiling (<?php echo(round((microtime(true) - ALI <!-- NOCACHE_END --> bar'; $pattern = '/<!-- NOCACHE_START ([A-Za-z_]+) -->(.*)<!-- NOCACHE_END -->/'; $replace = '$1$2'; echo preg_replace($pattern, $replace, $subject);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Fooo <!-- NOCACHE_START DEV_PROFILING --> <div class="box box-bdr pam mtm" id="dev_ProfilingButton"> <div class="h3">Profiling (<?php echo(round((microtime(true) - ALI <!-- NOCACHE_END --> bar