3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = " \\begin{verbatim} dupa zbita \\end \\end{verbatim} I chuj!!! \\end{verbatim}"; preg_match_all('/\\\\begin\s*\{verbatim\}.*\\\\end\s*\{verbatim\}/', 'VERBATIM', $str, $match); print_r($match);
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: match in /in/A8nEX on line 4 Notice: Undefined variable: match in /in/A8nEX on line 5
Output for 4.3.3 - 5.0.3
Notice: Undefined variable: match in /in/A8nEX on line 4 Notice: Undefined variable: match in /in/A8nEX on line 5
Output for 4.3.0 - 4.3.2
Notice: Undefined variable: match in /in/A8nEX on line 4 Warning: Wrong value for parameter 4 in call to preg_match_all() in /in/A8nEX on line 4 Notice: Undefined variable: match in /in/A8nEX on line 5