3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=array("apple","5","7"); preg_match("/(\w+)?/", "",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "",$matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7pPPP
function name:  (null)
number of ops:  19
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'
          2        SEND_VAL                                                 '%2F%28%5Cw%2B%29%3F%2F'
          3        SEND_VAL                                                 ''
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9        ECHO                                                     '%0A'
    6    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%28%5Cw%2A%29%2F'
         12        SEND_VAL                                                 ''
         13        SEND_REF                                                 !0
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.59 ms | 1386 KiB | 17 Q