3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello World Hey How Are You Doing"; $res = preg_match_all("/(?|(?:^|\h)(?=(\S+(?: \S+){2}))|(\S+))/", $string, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sRfee
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $res, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+World+Hey+How+Are+You+Doing'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3F%7C%28%3F%3A%5E%7C%5Ch%29%28%3F%3D%28%5CS%2B%28%3F%3A+%5CS%2B%29%7B2%7D%29%29%7C%28%5CS%2B%29%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~6      !2, 1
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.45 ms | 1397 KiB | 18 Q