3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'foo: 2008bar: 2009'; var_export( preg_match_all( '~\G(\w+): (\d+)~', $str, $out ) ? $out : 'no matches' );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GZjBg
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $out
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'foo%3A+2008bar%3A+2009'
    4     1        INIT_FCALL                                                   'var_export'
    5     2        INIT_FCALL                                                   'preg_match_all'
    6     3        SEND_VAL                                                     '%7E%5CG%28%5Cw%2B%29%3A+%28%5Cd%2B%29%7E'
    7     4        SEND_VAR                                                     !0
    8     5        SEND_REF                                                     !1
    5     6        DO_ICALL                                             $3      
    8     7      > JMPZ                                                         $3, ->10
   10     8    >   QM_ASSIGN                                            ~4      !1
          9      > JMP                                                          ->11
   11    10    >   QM_ASSIGN                                            ~4      'no+matches'
         11    >   SEND_VAL                                                     ~4
    4    12        DO_ICALL                                                     
   12    13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.65 ms | 2038 KiB | 15 Q