3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match("/^(?<NAME_A>aaa)(?:(?<NAME_B>x)?)/", "aaay", $matches, PREG_UNMATCHED_AS_NULL); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/em6fi
function name:  (null)
number of ops:  10
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5E%28%3F%3CNAME_A%3Eaaa%29%28%3F%3A%28%3F%3CNAME_B%3Ex%29%3F%29%2F'
          2        SEND_VAL                                                 'aaay'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 512
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.45 ms | 1385 KiB | 17 Q