3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/,|\[[^]]+\](*SKIP)(*FAIL)/'; $string = "'==', ['abc', 'xyz'], 1"; $result = preg_split($pattern, $string); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pujec
function name:  (null)
number of ops:  11
compiled vars:  !0 = $pattern, !1 = $string, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%2C%7C%5C%5B%5B%5E%5D%5D%2B%5C%5D%28%2ASKIP%29%28%2AFAIL%29%2F'
    4     1        ASSIGN                                                   !1, '%27%3D%3D%27%2C+%5B%27abc%27%2C+%27xyz%27%5D%2C+1'
    5     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.46 ms | 1005 KiB | 15 Q