3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pattern = '/^"(*SKIP)(*F)|"([^"]*)"/'; $str = "\"something \"something something\" and then \"something\" something \"\" test\""; echo preg_replace($pattern, "$1", $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bDYHv
function name:  (null)
number of ops:  6
compiled vars:  !0 = $pattern, !1 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F%5E%22%28%2ASKIP%29%28%2AF%29%7C%22%28%5B%5E%22%5D%2A%29%22%2F'
    4     1        ASSIGN                                                       !1, '%22something+%22something+something%22+and+then+%22something%22+something+%22%22+test%22'
    5     2        FRAMELESS_ICALL_3                preg_replace        ~4      !0, '%241'
          3        OP_DATA                                                      !1
          4        ECHO                                                         ~4
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
220.25 ms | 2063 KiB | 13 Q