3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = " \\begin{verbatim} dupa zbita \\end \\end{verbatim} I chuj!!! \\end{verbatim}"; $str = preg_replace('/\\\\begin\s*\{verbatim\}.*\\\\end\s*\{verbatim\}/', 'VERBATIM', $str); echo $str;
Output for 4.3.0 - 7.1.0
VERBATIM