3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = []; preg_match('/(^|.*\])([\w\.]+)(\[.*|$)/', 'accaaa+', $matches); echo var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ol20n
function name:  (null)
number of ops:  11
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%5E%7C.%2A%5C%5D%29%28%5B%5Cw%5C.%5D%2B%29%28%5C%5B.%2A%7C%24%29%2F'
          3        SEND_VAL                                                 'accaaa%2B'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.03 ms | 1394 KiB | 17 Q