3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '`<span[^<>]*\bclass="[^"]*(?<class>email_[^\s"]*)[^"]*">\h*(?<mail>[^\s@]+@[^\s@]+)\h*<\/span>`'; $str = '<span class=" xx email_p_14 xx "> labore@et.de </span>'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); print_r(array_filter($matches[0], function ($k) { return !is_numeric($k); }, ARRAY_FILTER_USE_KEY));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mGHR9
function name:  (null)
number of ops:  20
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%60%3Cspan%5B%5E%3C%3E%5D%2A%5Cbclass%3D%22%5B%5E%22%5D%2A%28%3F%3Cclass%3Eemail_%5B%5E%5Cs%22%5D%2A%29%5B%5E%22%5D%2A%22%3E%5Ch%2A%28%3F%3Cmail%3E%5B%5E%5Cs%40%5D%2B%40%5B%5E%5Cs%40%5D%2B%29%5Ch%2A%3C%5C%2Fspan%3E%60'
    4     1        ASSIGN                                                   !1, '%3Cspan+class%3D%22+xx+email_p_14+xx+%22%3E+labore%40et.de+%3C%2Fspan%3E'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 0
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'array_filter'
         11        FETCH_DIM_R                                      ~6      !2, 0
         12        SEND_VAL                                                 ~6
         13        DECLARE_LAMBDA_FUNCTION                          ~7      [0]
         14        SEND_VAL                                                 ~7
         15        SEND_VAL                                                 2
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mGHR9
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'is_numeric'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        BOOL_NOT                                         ~2      $1
          5      > RETURN                                                   ~2
          6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
288.98 ms | 1014 KiB | 17 Q