3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); preg_match_all('/(:\w+)/', 'jhkjh :fgfg :fgfg : : ffgg', $matches); print_r($matches); $matches = array(); preg_match_all('/\s(:\w+)/', 'jhkjh :fgfgfgfg :fgfg : : ffgg', $matches, PREG_SET_ORDER); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QjgXF
function name:  (null)
number of ops:  20
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3A%5Cw%2B%29%2F'
          3        SEND_VAL                                                 'jhkjh+%3Afgfg+%3Afgfg+%3A+%3A+ffgg'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    6     9        ASSIGN                                                   !0, <array>
    7    10        INIT_FCALL                                               'preg_match_all'
         11        SEND_VAL                                                 '%2F%5Cs%28%3A%5Cw%2B%29%2F'
         12        SEND_VAL                                                 'jhkjh+%3Afgfgfgfg+%3Afgfg+%3A+%3A+ffgg'
         13        SEND_REF                                                 !0
         14        SEND_VAL                                                 2
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.18 ms | 1395 KiB | 17 Q