3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'value that I {want}, vs value "I do {NOT} want" '; $str = preg_replace("/\".*\"/U","",$str); preg_match_all("/\{(.*)\}/U",$str,$matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SRnva
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'value+that+I+%7Bwant%7D%2C+vs+value+%22I+do+%7BNOT%7D+want%22+'
    3     1        FRAMELESS_ICALL_3                preg_replace        ~3      '%2F%22.%2A%22%2FU', ''
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~3
    4     4        INIT_FCALL                                                   'preg_match_all'
          5        SEND_VAL                                                     '%2F%5C%7B%28.%2A%29%5C%7D%2FU'
          6        SEND_VAR                                                     !0
          7        SEND_REF                                                     !1
          8        DO_ICALL                                                     
    5     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.18 ms | 2862 KiB | 15 Q