3v4l.org

run code in 300+ PHP versions simultaneously
<?php $quotedString = '"(?:[^"\\\\]*(?\\\\.(*SKIP)(*FAIL))?)*"'; $regex = "($quotedString)"; $string = 'This is "A test of the \"Emergency System\" here..."'; var_dump(preg_match($regex, $string, $match), $match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YWYTm
function name:  (null)
number of ops:  16
compiled vars:  !0 = $quotedString, !1 = $regex, !2 = $string, !3 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%22%28%3F%3A%5B%5E%22%5C%5C%5D%2A%28%3F%5C%5C.%28%2ASKIP%29%28%2AFAIL%29%29%3F%29%2A%22'
    4     1        ROPE_INIT                                     3  ~6      '%28'
          2        ROPE_ADD                                      1  ~6      ~6, !0
          3        ROPE_END                                      2  ~5      ~6, '%29'
          4        ASSIGN                                                   !1, ~5
    6     5        ASSIGN                                                   !2, 'This+is+%22A+test+of+the+%5C%22Emergency+System%5C%22+here...%22'
    8     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'preg_match'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        SEND_REF                                                 !3
         11        DO_ICALL                                         $10     
         12        SEND_VAR                                                 $10
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.47 ms | 1386 KiB | 17 Q