3v4l.org

run code in 500+ PHP versions simultaneously
<?php $articletext = 'Here is some {gameid 55555 44444 33333} and here is some more {gameid 55555} and this is one more time {gameid 55555 33333}'; $regexgameid = '/{gameid(?:\s[0-9]{5}){1,3}}/i'; preg_match_all($regexgameid, $articletext, $matchesgameid, PREG_SET_ORDER); var_export($matchesgameid);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XRbbI
function name:  (null)
number of ops:  12
compiled vars:  !0 = $articletext, !1 = $regexgameid, !2 = $matchesgameid
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Here+is+some+%7Bgameid+55555+44444+33333%7D+and+here+is+some+more+%7Bgameid+55555%7D+and+this+is+one+more+time+%7Bgameid+55555+33333%7D'
    4     1        ASSIGN                                                       !1, '%2F%7Bgameid%28%3F%3A%5Cs%5B0-9%5D%7B5%7D%29%7B1%2C3%7D%7D%2Fi'
    5     2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAR                                                     !1
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !2
          6        SEND_VAL                                                     2
          7        DO_ICALL                                                     
    6     8        INIT_FCALL                                                   'var_export'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
121.59 ms | 477 KiB | 9 Q