3v4l.org

run code in 300+ PHP versions simultaneously
<?php $splitPattern = " \\ ([\\{}@*|&]) | @ (\s*) ([a-z0-9_-]+) (\s*) \{ "; $data = "@var{"; $result = preg_split("/(" . $splitPattern . ")/xsD", $data, 0, PREG_SPLIT_DELIM_CAPTURE); var_dump($result); $expectResult[] = "@var{"; $expectResult[] = ""; $expectResult[] = "var"; $expectResult[] = ""; var_dump($expectResult);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lv6eP
function name:  (null)
number of ops:  26
compiled vars:  !0 = $splitPattern, !1 = $data, !2 = $result, !3 = $expectResult
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A++++%0A++++%5C+++%28%5B%5C%7B%7D%40%2A%7C%26%5D%29+++%7C%0A++++%0A++++%40+++%28%5Cs%2A%29+++%28%5Ba-z0-9_-%5D%2B%29+++%28%5Cs%2A%29+++%5C%7B%0A'
   10     1        ASSIGN                                                   !1, '%40var%7B'
   12     2        INIT_FCALL                                               'preg_split'
          3        CONCAT                                           ~6      '%2F%28', !0
          4        CONCAT                                           ~7      ~6, '%29%2FxsD'
          5        SEND_VAL                                                 ~7
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
   14    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
   16    14        ASSIGN_DIM                                               !3
         15        OP_DATA                                                  '%40var%7B'
   17    16        ASSIGN_DIM                                               !3
         17        OP_DATA                                                  ''
   18    18        ASSIGN_DIM                                               !3
         19        OP_DATA                                                  'var'
   19    20        ASSIGN_DIM                                               !3
         21        OP_DATA                                                  ''
   21    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.71 ms | 946 KiB | 18 Q