3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = " \\begin{verbatim} dupa zbita \\end \\end{verbatim} I chuj!!! \\end{verbatim}"; preg_match_all('/\\\\begin\s*\{verbatim\}(?<content>.*?)\\\\end\s*\{verbatim\}/', $str, $match); print_r($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MlYgb
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+++%5Cbegin%7Bverbatim%7D+dupa+zbita+%5Cend+%5Cend%7Bverbatim%7D+I+chuj%21%21%21+%5Cend%7Bverbatim%7D'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5C%5Cbegin%5Cs%2A%5C%7Bverbatim%5C%7D%28%3F%3Ccontent%3E.%2A%3F%29%5C%5Cend%5Cs%2A%5C%7Bverbatim%5C%7D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.05 ms | 1394 KiB | 17 Q