3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourcestring="A string A string A string Of strings to match"; preg_match_all('/string.+{1}/',$sourcestring,$match); foreach($match[0] as $thisMatch){ echo "$thisMatch\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/2h0ih
function name:  (null)
number of ops:  15
compiled vars:  !0 = $sourcestring, !1 = $match, !2 = $thisMatch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'A+string+A+string+A+string+Of+strings+to+match'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2Fstring.%2B%7B1%7D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        FETCH_DIM_R                                      ~5      !1, 0
          7      > FE_RESET_R                                       $6      ~5, ->13
          8    > > FE_FETCH_R                                               $6, !2, ->13
    5     9    >   NOP                                                      
         10        FAST_CONCAT                                      ~7      !2, '%0A'
         11        ECHO                                                     ~7
    4    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $6
    6    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.62 ms | 1394 KiB | 15 Q