3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = "(Field1 = 'Val and ue1') and (Field2 = 'Valu or e2') or (Field3 = 'Value3')"; var_export(preg_split("~^\(|\)$|\) (and|or) \(~", $input, 0, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gIEND
function name:  (null)
number of ops:  11
compiled vars:  !0 = $input
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%28Field1+%3D+%27Val+and+ue1%27%29+and+%28Field2+%3D+%27Valu+or+e2%27%29+or+%28Field3+%3D+%27Value3%27%29'
    4     1        INIT_FCALL                                                   'var_export'
          2        INIT_FCALL                                                   'preg_split'
          3        SEND_VAL                                                     '%7E%5E%5C%28%7C%5C%29%24%7C%5C%29+%28and%7Cor%29+%5C%28%7E'
          4        SEND_VAR                                                     !0
          5        SEND_VAL                                                     0
          6        SEND_VAL                                                     3
          7        DO_ICALL                                             $2      
          8        SEND_VAR                                                     $2
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
213.26 ms | 1960 KiB | 15 Q