3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match('/(a)(b)*(c)/', 'ac', $matches); var_dump($matches); preg_match('/(a)(b)*(c)/', 'ac', $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/lQQJQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'preg_match'
          1        SEND_VAL                                                     '%2F%28a%29%28b%29%2A%28c%29%2F'
          2        SEND_VAL                                                     'ac'
          3        SEND_REF                                                     !0
          4        DO_ICALL                                                     
    4     5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
    5     8        INIT_FCALL                                                   'preg_match'
          9        SEND_VAL                                                     '%2F%28a%29%28b%29%2A%28c%29%2F'
         10        SEND_VAL                                                     'ac'
         11        SEND_REF                                                     !0
         12        SEND_VAL                                                     512
         13        DO_ICALL                                                     
    6    14        INIT_FCALL                                                   'var_dump'
         15        SEND_VAR                                                     !0
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.52 ms | 479 KiB | 9 Q