3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keywords = "val"; preg_match_all('/\w+(?=;|$)/', $keywords, $matches); print_r($matches[0]); $keywords = "val;"; preg_match_all('/\w+(?=;|$)/', $keywords, $matches); print_r($matches[0]); $keywords = "val1; val2;"; preg_match_all('/\w+(?=;|$)/', $keywords, $matches); print_r($matches[0]); $keywords = "val1; val2"; preg_match_all('/\w+(?=;|$)/', $keywords, $matches); print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tL3TH
function name:  (null)
number of ops:  41
compiled vars:  !0 = $keywords, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'val'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Cw%2B%28%3F%3D%3B%7C%24%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        FETCH_DIM_R                                      ~4      !1, 0
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    7    10        ASSIGN                                                   !0, 'val%3B'
    8    11        INIT_FCALL                                               'preg_match_all'
         12        SEND_VAL                                                 '%2F%5Cw%2B%28%3F%3D%3B%7C%24%29%2F'
         13        SEND_VAR                                                 !0
         14        SEND_REF                                                 !1
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'print_r'
         17        FETCH_DIM_R                                      ~8      !1, 0
         18        SEND_VAL                                                 ~8
         19        DO_ICALL                                                 
   11    20        ASSIGN                                                   !0, 'val1%3B+val2%3B'
   12    21        INIT_FCALL                                               'preg_match_all'
         22        SEND_VAL                                                 '%2F%5Cw%2B%28%3F%3D%3B%7C%24%29%2F'
         23        SEND_VAR                                                 !0
         24        SEND_REF                                                 !1
         25        DO_ICALL                                                 
   13    26        INIT_FCALL                                               'print_r'
         27        FETCH_DIM_R                                      ~12     !1, 0
         28        SEND_VAL                                                 ~12
         29        DO_ICALL                                                 
   15    30        ASSIGN                                                   !0, 'val1%3B+val2'
   16    31        INIT_FCALL                                               'preg_match_all'
         32        SEND_VAL                                                 '%2F%5Cw%2B%28%3F%3D%3B%7C%24%29%2F'
         33        SEND_VAR                                                 !0
         34        SEND_REF                                                 !1
         35        DO_ICALL                                                 
   17    36        INIT_FCALL                                               'print_r'
         37        FETCH_DIM_R                                      ~16     !1, 0
         38        SEND_VAL                                                 ~16
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.96 ms | 1005 KiB | 16 Q