3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hello world [something here]{optional}{optional}{optional}{n possibilities of this}'; var_export(preg_split('/ *\[|\]|(?=\{)/', $str, 0, PREG_SPLIT_NO_EMPTY));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lKTDv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+world+%5Bsomething+here%5D%7Boptional%7D%7Boptional%7D%7Boptional%7D%7Bn+possibilities+of+this%7D'
    5     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F+%2A%5C%5B%7C%5C%5D%7C%28%3F%3D%5C%7B%29%2F'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
231.62 ms | 1067 KiB | 15 Q