3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '`(?<=\()\w+(?:[,\h]+\w+)*(?=\))`'; $str = 'Citrus fruits (oranges, mandarins lemons) have many nutrients'; preg_match($re, $str, $matches); print_r(preg_split("~[,\h+]~", $matches[0], -1, PREG_SPLIT_NO_EMPTY));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a2ceA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%60%28%3F%3C%3D%5C%28%29%5Cw%2B%28%3F%3A%5B%2C%5Ch%5D%2B%5Cw%2B%29%2A%28%3F%3D%5C%29%29%60'
    4     1        ASSIGN                                                   !1, 'Citrus+fruits+%28oranges%2C+mandarins+lemons%29+have+many+nutrients'
    6     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '%7E%5B%2C%5Ch%2B%5D%7E'
         10        FETCH_DIM_R                                      ~6      !2, 0
         11        SEND_VAL                                                 ~6
         12        SEND_VAL                                                 -1
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.01 ms | 1003 KiB | 16 Q