3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "foo*arbaz*luj*abaz*lewis*bazbazlewbaz"; echo preg_match_all('~(?:\G(?!\A)|^foo)[^*]*\K\*~', $string, $matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pH4GE
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'foo%2Aarbaz%2Aluj%2Aabaz%2Alewis%2Abazbazlewbaz'
    4     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%7E%28%3F%3A%5CG%28%3F%21%5CA%29%7C%5Efoo%29%5B%5E%2A%5D%2A%5CK%5C%2A%7E'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                             $3      
          6        ECHO                                                         $3
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.39 ms | 476 KiB | 8 Q