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 5.4.0 - 7.1.0
\begin{verbatim} dupa zbita nd nd{verbatim} I chuj!!! nd{verbatim}
Output for 4.3.0 - 5.3.29
VERBATIM