3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "137 ,77 ,278:214 e{34:3,32:5,33:1},277:248 e{32:5,33:1,34:3}n{Got Dirt?},323 ,443"; $result = preg_split("~(,)(?!(?:[^\{]*\}))~",$str); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/phSNW
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '137+%2C77+%2C278%3A214+e%7B34%3A3%2C32%3A5%2C33%3A1%7D%2C277%3A248+e%7B32%3A5%2C33%3A1%2C34%3A3%7Dn%7BGot+Dirt%3F%7D%2C323+%2C443'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%7E%28%2C%29%28%3F%21%28%3F%3A%5B%5E%5C%7B%5D%2A%5C%7D%29%29%7E'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    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:
150.83 ms | 1010 KiB | 15 Q