3v4l.org

run code in 500+ PHP versions simultaneously
<?php $search_expression = '+word1 -word2 -"word word"'; $words = preg_split("~\"[^\"]+\"(*SKIP)(*FAIL)|\h+~", $search_expression); print_r($words);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RFU89
function name:  (null)
number of ops:  10
compiled vars:  !0 = $search_expression, !1 = $words
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2Bword1+-word2+-%22word+word%22'
    4     1        INIT_FCALL                                                   'preg_split'
          2        SEND_VAL                                                     '%7E%22%5B%5E%22%5D%2B%22%28%2ASKIP%29%28%2AFAIL%29%7C%5Ch%2B%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.5.0


preferences:
214.79 ms | 2229 KiB | 15 Q