3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = " {ABC} + 1 - 1 {DEF} + 2 - 2 {IJK} + 3 - 3 {LMN} + 4 - 4 "; preg_match_all('/{[^{]*/', $txt, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YcITh
function name:  (null)
number of ops:  10
compiled vars:  !0 = $txt, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%7BABC%7D%0A%2B+1%0A-+1%0A%0A%7BDEF%7D%0A%2B+2%0A-+2%0A%0A%7BIJK%7D%0A%2B+3%0A-+3%0A%0A%7BLMN%7D%0A%2B+4+%0A-+4%0A'
   20     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%7B%5B%5E%7B%5D%2A%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   21     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:
141.93 ms | 1398 KiB | 17 Q