3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.81 ms | 1386 KiB | 15 Q